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

Fix .check files for SIP-23 #87

Merged
merged 70 commits into from
Nov 17, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
8aae26b
SI-6502 Remove cp command as unworkable
som-snytt Sep 12, 2014
90745a6
SI-6502 Repl reset/replay take settings args
som-snytt Sep 16, 2014
37aecb4
Add color to severity in REPL reporter
puffnfresh Sep 25, 2014
56daf12
SI-6192 Range: to, until and end are confusing
Ichoran Sep 30, 2014
cd060f7
SI-8870 Fix markup errors in the Types section of the spec
retronym Sep 30, 2014
2e69ab9
Increase REPL startup timeout to avoid test failures
retronym Oct 1, 2014
5182154
SI-8845 Control flow pot-pourri crashes GenASM, but not -BCode
retronym Sep 15, 2014
0bdae89
SI-8217 allow abstract type members in objects
Blaisorblade Jan 31, 2014
c763e5f
SI-8267 Avoid existentials after polymorphic overload resolution
retronym Sep 18, 2014
70fafcd
Revert "Disable flaky presentation compiler test."
dragos Oct 3, 2014
94b9be2
Make Scaladoc actually exit with non-zero exit code in case of errors,
dturner-tw Oct 4, 2014
e0c9991
SI-8291 Fix implicitNotFound message with type aliases
retronym Oct 5, 2014
97b1886
SI-7746 patmat: fix non-determinism, infeasible counter examples
gbasler Sep 14, 2014
2de41f8
Cleanup `LinkedHashSet` fixes and replace them with `Set` (i.e., back
gbasler Aug 31, 2014
04788fd
SI-8843 AbsFileCL acts like a CL
som-snytt Oct 4, 2014
dfbe2de
SI-8731 warning if @switch is ignored
lrytz Sep 29, 2014
223bc87
SI-8888 Avoid ClassFormatError under -Ydelambdafy:method
retronym Oct 7, 2014
d192f32
Update stripPrefix/StringLike docs to talk about no op case
Aug 26, 2014
b01f450
Avoid ClassfileAnnotation warning for @SerialVersionUID
soc Oct 3, 2014
1d4735e
SI-4788/SI-5948 Respect RetentionPolicy of Java annotations
soc Feb 3, 2014
a173d5b
Use color REPL after writing a def
puffnfresh Oct 8, 2014
c7d078c
SI-8871 Fix specialization under REPL / FSC
retronym Oct 8, 2014
5e88b0b
SI-5583 Remove the workaround for specialization bug
retronym Oct 8, 2014
d456a6a
SI-8894 dealias when looking at tuple components
adriaanm Oct 8, 2014
c8d6cca
Update 02-identifiers-names-and-scopes.md
roberthoedicke Oct 8, 2014
9ce27fc
Update 03-types.md
roberthoedicke Oct 8, 2014
b5f34fb
Update 03-types.md
roberthoedicke Oct 8, 2014
4eb5627
Update 04-basic-declarations-and-definitions.md
roberthoedicke Oct 8, 2014
0f2143c
Update 06-expressions.md
roberthoedicke Oct 8, 2014
2725f26
Update 08-pattern-matching.md
roberthoedicke Oct 8, 2014
642180f
Update 10-xml-expressions-and-patterns.md
roberthoedicke Oct 8, 2014
a1454fb
Update 12-the-scala-standard-library.md
roberthoedicke Oct 8, 2014
e6fccba
SI-6613 Make Java enums work in FSC / REPL
retronym Oct 9, 2014
255e73f
SI-8890 handle reference to overload with error
adriaanm Oct 7, 2014
1da3caa
Update 04-basic-declarations-and-definitions.md
roberthoedicke Oct 10, 2014
d8d1764
Optimize tail calls to avoid findMember calls
retronym Oct 7, 2014
58be165
Avoid needlessly deep chains of ClonedTailContext
retronym Oct 8, 2014
30ae042
Wider use of mapConserve and the like in TailCalls
retronym Oct 8, 2014
49a0ab4
SI-8893 Restore linear perf in TailCalls with nested matches
retronym Oct 8, 2014
0974ded
Avoid wasteful array creation in backend
retronym Oct 8, 2014
803c962
SI-3439 Fix use of implicit constructor params in super call
retronym Oct 10, 2014
c70a7b9
SI-5454 Test case for another ticket fixed by the previous commit
retronym Oct 10, 2014
012fb89
[nomerge] SI-8899 Revert "SI-8627 make Stream.filterNot non-eager"
lrytz Oct 12, 2014
2654ff9
SI-8711 ScalaVersion.unparse doesn't produce valid versions
gourlaysama Oct 10, 2014
1d6f8e5
SI-8907 Don't force symbol info in isModuleNotMethod
lrytz Oct 14, 2014
0ee51a4
SI-8900 Don't assert !isDelambdafyFunction, it may not be accurate
lrytz Oct 12, 2014
1b4c715
SI-8910 BitSet sometimes uses exponential memory.
Lymia Oct 14, 2014
0ee21ec
fix typo. s/represenation/representation
xuwei-k Oct 20, 2014
5adaec3
SI-8926 default visbility RUNTIME for java annotations
lrytz Oct 20, 2014
02f3255
Delete zipfile-bug.txt
Blaisorblade Oct 23, 2014
974e4c7
Bump version number in build.number to 2.11.4
gkossakowski Oct 23, 2014
993ffef
SI-4950 Add tests, looks like it has been fixed earlier
soc Oct 23, 2014
d9c6a8a
SI-8916 Fix -Ywarn-unused-import warnings
soc Oct 15, 2014
78ad3a8
SI-8916 Further fixes with -Ywarn-unused included
soc Oct 15, 2014
4831ae4
SI-8916 Revert addition of -Ywarn-unused[-import]
soc Oct 15, 2014
96c8866
SI-8875 showCode should print all class constructor modifiers.
gourlaysama Oct 10, 2014
bdc1449
Bump version to 2.11.5 in build.number file.
gkossakowski Oct 26, 2014
c027e78
SI-8934 Fix whitebox extractor macros in the pres. compiler
retronym Oct 23, 2014
c61a7ef
Make global-showdef a DirectTest
som-snytt Oct 18, 2014
094c94e
Reduce compiles for global-showdef test
som-snytt Oct 18, 2014
b83b728
SI-8941 Idempotent presentation compilation of implicit classes
retronym Oct 28, 2014
08b4156
SI-8941 Deterministic tests for pres. compiler idempotency
retronym Oct 28, 2014
a65cb94
SI-8943 Handle non-public case fields in pres. compiler
retronym Oct 29, 2014
e98775b
SI-8893 Test case to show that tailrec continues to work
retronym Nov 2, 2014
f13def5
SI-8893 Test tailcall transform for mix of tail/non-tail recursion
retronym Nov 3, 2014
9c0e8c5
IntelliJ IDEA files for version 14
lrytz Nov 3, 2014
4e9e100
bump module versions in eclipse projects
adriaanm Oct 23, 2014
071367c
[WIP] SIP-23 Parse `Literal` as `SimpleType`
adriaanm Oct 24, 2014
1130584
Hide the optional .type for now.
folone Nov 16, 2014
6eddf7c
Update check files accordingly.
folone Nov 16, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
# eclipse, intellij, ensime
/.classpath
/.project
/src/intellij/*.iml
/src/intellij/*.ipr
/src/intellij/*.iws
/src/intellij*/*.iml
/src/intellij*/*.ipr
/src/intellij*/*.iws
**/.cache
/.idea
/.settings
Expand Down
9 changes: 0 additions & 9 deletions bincompat-backward.whitelist.conf
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,6 @@ filter {
matchName="scala.reflect.runtime.SynchronizedOps.newNestedScope"
problemName=MissingMethodProblem
},
// see github.com/scala/scala/pull/3925, SI-8627, SI-6440
{
matchName="scala.collection.TraversableLike.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.immutable.Stream.filteredTail"
problemName=MissingMethodProblem
},
// https://github.com/scala/scala/pull/3848 -- SI-8680
{
matchName="scala.collection.immutable.Stream.scala$collection$immutable$Stream$$loop$6"
Expand Down
97 changes: 0 additions & 97 deletions bincompat-forward.whitelist.conf
Original file line number Diff line number Diff line change
Expand Up @@ -272,103 +272,6 @@ filter {
matchName="scala.reflect.api.PredefTypeCreator"
problemName=MissingClassProblem
},
// see github.com/scala/scala/pull/3925, SI-8627, SI-6440
{
matchName="scala.collection.IterableViewLike#AbstractTransformed.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.AbstractTraversable.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.TraversableViewLike#AbstractTransformed.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.TraversableLike.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.SeqViewLike#AbstractTransformed.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.immutable.TreeSet.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.immutable.Stream.filteredTail"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.immutable.Stream.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.immutable.Stream.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.immutable.StringOps.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.immutable.TreeMap.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.concurrent.TrieMap.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.mutable.ArrayOps#ofByte.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.mutable.ArrayOps#ofLong.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.mutable.ArrayOps#ofUnit.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.mutable.ArrayOps#ofInt.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.mutable.ArrayOps#ofChar.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.mutable.ArrayOps#ofRef.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.mutable.ArrayOps#ofDouble.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.mutable.ArrayOps#ofFloat.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.mutable.ArrayOps#ofBoolean.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.mutable.ArrayOps#ofShort.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.collection.mutable.TreeSet.filterImpl"
problemName=MissingMethodProblem
},
{
matchName="scala.reflect.io.AbstractFile.filterImpl"
problemName=MissingMethodProblem
},
// https://github.com/scala/scala/pull/3848 -- SI-8680
{
matchName="scala.collection.immutable.Stream.scala$collection$immutable$Stream$$loop$6"
Expand Down
2 changes: 1 addition & 1 deletion build.number
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Tue Sep 11 19:21:09 CEST 2007
version.major=2
version.minor=11
version.patch=3
version.patch=5
# This is the -N part of a version. if it's 0, it's dropped from maven versions.
version.bnum=0

Expand Down
93 changes: 0 additions & 93 deletions docs/development/scala.tools.nsc/zipfile-bug.txt

This file was deleted.

2 changes: 1 addition & 1 deletion spec/02-identifiers-names-and-scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ The type of $e.x$ is the member type of the referenced entity in $T$.

### Example

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

```scala
package P {
Expand Down
14 changes: 7 additions & 7 deletions spec/03-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ the following holds:
parameters by another, the result types as well as variances, lower and upper
bounds of corresponding type parameters are equivalent.

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion spec/04-basic-declarations-and-definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ variable number of integer arguments.
```scala
def sum(args: Int*) = {
var result = 0
for (arg <- args) result += arg * arg
for (arg <- args) result += arg
result
}
```
Expand Down
6 changes: 3 additions & 3 deletions spec/06-expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ $T$ is a value type; if it is a method type we apply
means finding a substitution $\sigma$ of types $T_i$ for the type
parameters $a_i$ such that

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

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

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

```scala
package scala
Expand Down
4 changes: 2 additions & 2 deletions spec/08-pattern-matching.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ type of the pattern. The pattern matches any value $v$ such that

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

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

### XML Patterns
Expand Down
2 changes: 1 addition & 1 deletion spec/10-xml-expressions-and-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ sequence of XML nodes (an instance of a subclass of
`scala.Seq[scala.xml.Node]`).

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

By default, beginning and trailing whitespace in element content is removed,
Expand Down
2 changes: 1 addition & 1 deletion spec/12-the-scala-standard-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ The `toString` method returns `"()"`.
## Standard Reference Classes

This section presents some standard Scala reference classes which are
treated in a special way in Scala compiler -- either Scala provides
treated in a special way by the Scala compiler -- either Scala provides
syntactic sugar for them, or the Scala compiler generates special code
for their operations. Other classes in the standard Scala library are
documented in the Scala library documentation by HTML pages.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ abstract class DefaultMacroCompiler extends Resolvers
import treeInfo._
import definitions._
val runDefinitions = currentRun.runDefinitions
import runDefinitions.{Predef_???, _}
import runDefinitions.Predef_???

val typer: global.analyzer.Typer
val context = typer.context
Expand Down
1 change: 0 additions & 1 deletion src/compiler/scala/reflect/macros/compiler/Errors.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ trait Errors extends Traces {
import analyzer._
import definitions._
import treeInfo._
import typer.TyperErrorGen._
import typer.infer.InferErrorGen._
import runDefinitions._
def globalSettings = global.settings
Expand Down
6 changes: 0 additions & 6 deletions src/compiler/scala/reflect/macros/compiler/Resolvers.scala
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
package scala.reflect.macros
package compiler

import scala.reflect.internal.Flags._
import scala.reflect.macros.TypecheckException

trait Resolvers {
self: DefaultMacroCompiler =>

import global._
import analyzer._
import definitions._
import treeInfo._
import gen._
import runDefinitions._

trait Resolver {
self: MacroImplRefCompiler =>
Expand Down
Loading