Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit f308ab0

Browse files
author
Jon Pretty
committed
Merge pull request #87 from folone/fix-sip23
Fix .check files for SIP-23
2 parents 52e949e + 6eddf7c commit f308ab0

File tree

221 files changed

+2529
-864
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+2529
-864
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
# eclipse, intellij, ensime
4040
/.classpath
4141
/.project
42-
/src/intellij/*.iml
43-
/src/intellij/*.ipr
44-
/src/intellij/*.iws
42+
/src/intellij*/*.iml
43+
/src/intellij*/*.ipr
44+
/src/intellij*/*.iws
4545
**/.cache
4646
/.idea
4747
/.settings

bincompat-backward.whitelist.conf

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,6 @@ filter {
186186
matchName="scala.reflect.runtime.SynchronizedOps.newNestedScope"
187187
problemName=MissingMethodProblem
188188
},
189-
// see github.com/scala/scala/pull/3925, SI-8627, SI-6440
190-
{
191-
matchName="scala.collection.TraversableLike.filterImpl"
192-
problemName=MissingMethodProblem
193-
},
194-
{
195-
matchName="scala.collection.immutable.Stream.filteredTail"
196-
problemName=MissingMethodProblem
197-
},
198189
// https://github.com/scala/scala/pull/3848 -- SI-8680
199190
{
200191
matchName="scala.collection.immutable.Stream.scala$collection$immutable$Stream$$loop$6"

bincompat-forward.whitelist.conf

Lines changed: 0 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -272,103 +272,6 @@ filter {
272272
matchName="scala.reflect.api.PredefTypeCreator"
273273
problemName=MissingClassProblem
274274
},
275-
// see github.com/scala/scala/pull/3925, SI-8627, SI-6440
276-
{
277-
matchName="scala.collection.IterableViewLike#AbstractTransformed.filterImpl"
278-
problemName=MissingMethodProblem
279-
},
280-
{
281-
matchName="scala.collection.AbstractTraversable.filterImpl"
282-
problemName=MissingMethodProblem
283-
},
284-
{
285-
matchName="scala.collection.TraversableViewLike#AbstractTransformed.filterImpl"
286-
problemName=MissingMethodProblem
287-
},
288-
{
289-
matchName="scala.collection.TraversableLike.filterImpl"
290-
problemName=MissingMethodProblem
291-
},
292-
{
293-
matchName="scala.collection.SeqViewLike#AbstractTransformed.filterImpl"
294-
problemName=MissingMethodProblem
295-
},
296-
{
297-
matchName="scala.collection.immutable.TreeSet.filterImpl"
298-
problemName=MissingMethodProblem
299-
},
300-
{
301-
matchName="scala.collection.immutable.Stream.filteredTail"
302-
problemName=MissingMethodProblem
303-
},
304-
{
305-
matchName="scala.collection.immutable.Stream.filterImpl"
306-
problemName=MissingMethodProblem
307-
},
308-
{
309-
matchName="scala.collection.immutable.Stream.filterImpl"
310-
problemName=MissingMethodProblem
311-
},
312-
{
313-
matchName="scala.collection.immutable.StringOps.filterImpl"
314-
problemName=MissingMethodProblem
315-
},
316-
{
317-
matchName="scala.collection.immutable.TreeMap.filterImpl"
318-
problemName=MissingMethodProblem
319-
},
320-
{
321-
matchName="scala.collection.concurrent.TrieMap.filterImpl"
322-
problemName=MissingMethodProblem
323-
},
324-
{
325-
matchName="scala.collection.mutable.ArrayOps#ofByte.filterImpl"
326-
problemName=MissingMethodProblem
327-
},
328-
{
329-
matchName="scala.collection.mutable.ArrayOps#ofLong.filterImpl"
330-
problemName=MissingMethodProblem
331-
},
332-
{
333-
matchName="scala.collection.mutable.ArrayOps#ofUnit.filterImpl"
334-
problemName=MissingMethodProblem
335-
},
336-
{
337-
matchName="scala.collection.mutable.ArrayOps#ofInt.filterImpl"
338-
problemName=MissingMethodProblem
339-
},
340-
{
341-
matchName="scala.collection.mutable.ArrayOps#ofChar.filterImpl"
342-
problemName=MissingMethodProblem
343-
},
344-
{
345-
matchName="scala.collection.mutable.ArrayOps#ofRef.filterImpl"
346-
problemName=MissingMethodProblem
347-
},
348-
{
349-
matchName="scala.collection.mutable.ArrayOps#ofDouble.filterImpl"
350-
problemName=MissingMethodProblem
351-
},
352-
{
353-
matchName="scala.collection.mutable.ArrayOps#ofFloat.filterImpl"
354-
problemName=MissingMethodProblem
355-
},
356-
{
357-
matchName="scala.collection.mutable.ArrayOps#ofBoolean.filterImpl"
358-
problemName=MissingMethodProblem
359-
},
360-
{
361-
matchName="scala.collection.mutable.ArrayOps#ofShort.filterImpl"
362-
problemName=MissingMethodProblem
363-
},
364-
{
365-
matchName="scala.collection.mutable.TreeSet.filterImpl"
366-
problemName=MissingMethodProblem
367-
},
368-
{
369-
matchName="scala.reflect.io.AbstractFile.filterImpl"
370-
problemName=MissingMethodProblem
371-
},
372275
// https://github.com/scala/scala/pull/3848 -- SI-8680
373276
{
374277
matchName="scala.collection.immutable.Stream.scala$collection$immutable$Stream$$loop$6"

build.number

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Tue Sep 11 19:21:09 CEST 2007
22
version.major=2
33
version.minor=11
4-
version.patch=3
4+
version.patch=5
55
# This is the -N part of a version. if it's 0, it's dropped from maven versions.
66
version.bnum=0
77

docs/development/scala.tools.nsc/zipfile-bug.txt

Lines changed: 0 additions & 93 deletions
This file was deleted.

spec/02-identifiers-names-and-scopes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The type of $e.x$ is the member type of the referenced entity in $T$.
7171

7272
### Example
7373

74-
Assume the following two definitions of a objects named `X` in packages `P` and `Q`.
74+
Assume the following two definitions of objects named `X` in packages `P` and `Q`.
7575

7676
```scala
7777
package P {

spec/03-types.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ the following holds:
846846
parameters by another, the result types as well as variances, lower and upper
847847
bounds of corresponding type parameters are equivalent.
848848

849-
[^congruence]: A congruence is an equivalence relation which is closed under formation of contexts
849+
[^congruence]: A congruence is an equivalence relation which is closed under formation of contexts.
850850
[^implicit]: A method type is implicit if the parameter section that defines it starts with the `implicit` keyword.
851851

852852
### Conformance
@@ -889,15 +889,15 @@ transitive relation that satisfies the following conditions.
889889
if $T$ conforms to one of the [type instances](#existential-types)
890890
of `$U$ forSome {$\,Q\,$}`.
891891
- If
892-
$T_i \equiv T'_i$ for $i \in \{ 1 , \ldots , n\}$ and $U$ conforms to $U'$
892+
$T_i \equiv T_i'$ for $i \in \{ 1 , \ldots , n\}$ and $U$ conforms to $U'$
893893
then the method type $(p_1:T_1 , \ldots , p_n:T_n) U$ conforms to
894-
$(p'_1:T'_1 , \ldots , p'_n:T'_n) U'$.
894+
$(p_1':T_1' , \ldots , p_n':T_n') U'$.
895895
- The polymorphic type
896896
$[a_1 >: L_1 <: U_1 , \ldots , a_n >: L_n <: U_n] T$ conforms to the
897897
polymorphic type
898-
$[a_1 >: L'_1 <: U'_1 , \ldots , a_n >: L'_n <: U'_n] T'$ if, assuming
899-
$L'_1 <: a_1 <: U'_1 , \ldots , L'_n <: a_n <: U'_n$
900-
one has $T <: T'$ and $L_i <: L'_i$ and $U'_i <: U_i$
898+
$[a_1 >: L_1' <: U_1' , \ldots , a_n >: L_n' <: U_n'] T'$ if, assuming
899+
$L_1' <: a_1 <: U_1' , \ldots , L_n' <: a_n <: U_n'$
900+
one has $T <: T'$ and $L_i <: L_i'$ and $U_i' <: U_i$
901901
for $i \in \{ 1 , \ldots , n \}$.
902902
- Type constructors $T$ and $T'$ follow a similar discipline. We characterize
903903
$T$ and $T'$ by their type parameter clauses
@@ -964,7 +964,7 @@ limit [^4].
964964

965965
The least upper bound or greatest lower bound might also not be
966966
unique. For instance `A with B` and `B with A` are both
967-
greatest lower of `A` and `B`. If there are several
967+
greatest lower bounds of `A` and `B`. If there are several
968968
least upper bounds or greatest lower bounds, the Scala compiler is
969969
free to pick any one of them.
970970

spec/04-basic-declarations-and-definitions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ variable number of integer arguments.
720720
```scala
721721
def sum(args: Int*) = {
722722
var result = 0
723-
for (arg <- args) result += arg * arg
723+
for (arg <- args) result += arg
724724
result
725725
}
726726
```

spec/06-expressions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ $T$ is a value type; if it is a method type we apply
15711571
means finding a substitution $\sigma$ of types $T_i$ for the type
15721572
parameters $a_i$ such that
15731573

1574-
- None of inferred types $T_i$ is a [singleton type](03-types.html#singleton-types)
1574+
- None of the inferred types $T_i$ is a [singleton type](03-types.html#singleton-types)
15751575
- All type parameter bounds are respected, i.e.
15761576
$\sigma L_i <: \sigma a_i$ and $\sigma a_i <: \sigma U_i$ for $i = 1 , \ldots , n$.
15771577
- The expression's type conforms to the expected type, i.e.
@@ -1608,7 +1608,7 @@ constraint system means
16081608
finding a substitution $\sigma$ of types $T_i$ for the type parameters
16091609
$a_i$ such that
16101610

1611-
- None of inferred types $T_i$ is a [singleton type](03-types.html#singleton-types)
1611+
- None of the inferred types $T_i$ is a [singleton type](03-types.html#singleton-types)
16121612
- All type parameter bounds are respected, i.e. $\sigma L_i <: \sigma a_i$ and
16131613
$\sigma a_i <: \sigma U_i$ for $i = 1 , \ldots , n$.
16141614
- The method's result type $T'$ conforms to the expected type, i.e. $\sigma T' <: \sigma \mathit{pt}$.
@@ -1750,7 +1750,7 @@ a sub-expression of parameterless method type, is not evaluated in the expanded
17501750
### Dynamic Member Selection
17511751

17521752
The standard Scala library defines a trait `scala.Dynamic` which defines a member
1753-
\@invokeDynamic@ as follows:
1753+
`applyDynamic` as follows:
17541754

17551755
```scala
17561756
package scala

spec/08-pattern-matching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ type of the pattern. The pattern matches any value $v$ such that
115115

116116
To resolve the syntactic overlap with a variable pattern, a
117117
stable identifier pattern may not be a simple name starting with a lower-case
118-
letter. However, it is possible to enclose a such a variable name in
118+
letter. However, it is possible to enclose such a variable name in
119119
backquotes; then it is treated as a stable identifier pattern.
120120

121121
###### Example
@@ -283,7 +283,7 @@ shorthand for the constructor or extractor pattern $\mathit{op}(p, q_1
283283
A pattern alternative `$p_1$ | $\ldots$ | $p_n$`
284284
consists of a number of alternative patterns $p_i$. All alternative
285285
patterns are type checked with the expected type of the pattern. They
286-
may no bind variables other than wildcards. The alternative pattern
286+
may not bind variables other than wildcards. The alternative pattern
287287
matches a value $v$ if at least one its alternatives matches $v$.
288288

289289
### XML Patterns

spec/10-xml-expressions-and-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ sequence of XML nodes (an instance of a subclass of
5959
`scala.Seq[scala.xml.Node]`).
6060

6161
If an XML expression is an entity reference, CDATA section, processing
62-
instructions or a comments, it is represented by an instance of the
62+
instruction, or a comment, it is represented by an instance of the
6363
corresponding Scala runtime class.
6464

6565
By default, beginning and trailing whitespace in element content is removed,

spec/12-the-scala-standard-library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ The `toString` method returns `"()"`.
332332
## Standard Reference Classes
333333

334334
This section presents some standard Scala reference classes which are
335-
treated in a special way in Scala compiler -- either Scala provides
335+
treated in a special way by the Scala compiler -- either Scala provides
336336
syntactic sugar for them, or the Scala compiler generates special code
337337
for their operations. Other classes in the standard Scala library are
338338
documented in the Scala library documentation by HTML pages.

src/compiler/scala/reflect/macros/compiler/DefaultMacroCompiler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ abstract class DefaultMacroCompiler extends Resolvers
1212
import treeInfo._
1313
import definitions._
1414
val runDefinitions = currentRun.runDefinitions
15-
import runDefinitions.{Predef_???, _}
15+
import runDefinitions.Predef_???
1616

1717
val typer: global.analyzer.Typer
1818
val context = typer.context

src/compiler/scala/reflect/macros/compiler/Errors.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ trait Errors extends Traces {
1111
import analyzer._
1212
import definitions._
1313
import treeInfo._
14-
import typer.TyperErrorGen._
1514
import typer.infer.InferErrorGen._
1615
import runDefinitions._
1716
def globalSettings = global.settings

src/compiler/scala/reflect/macros/compiler/Resolvers.scala

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
package scala.reflect.macros
22
package compiler
33

4-
import scala.reflect.internal.Flags._
5-
import scala.reflect.macros.TypecheckException
6-
74
trait Resolvers {
85
self: DefaultMacroCompiler =>
96

107
import global._
118
import analyzer._
12-
import definitions._
139
import treeInfo._
14-
import gen._
15-
import runDefinitions._
1610

1711
trait Resolver {
1812
self: MacroImplRefCompiler =>

0 commit comments

Comments
 (0)