Skip to content

Commit 7db1915

Browse files
committed
Merge remote-tracking branch 'origin/2.10.x' into merge-2.10.x
* origin/2.10.x: SI-6089 pt2: _ is tailpos in `_ || _` and `_ && _` Linked the PR policy in the README file. Scaladoc: Removing forgotten debugging info address "this would catch all throwables" warnings SI-1832 consistent symbols in casedef's pattern&body SIP-14 - Fix critical Java compatibility issue in scala.concurrent.Await Removes redundant outers Use `findMember` to lookup the static field in the host class. update docs for (partial) fun synth in uncurry SI-5999 a real fix to the packageless problem evicts calls to reify from our codebase an improvement based on Adriaan's comment SI-6031 customizable budget for patmat analyses SI-5739 address @retronym's feedback, more docs SI-5999 staticXXX is now friendly to packageless SI-5949 updates documentation of staticClass SI-5999 removes the macro context mirror more meaningful name for a missing hook method SI-5999 deploys a new starr SI-5999 removes Context.reify improves docs of scala.reflect.api.Mirrors SI-5984 improves error reporting in JavaMirrors SI-4897 derive expected value from single type Switch to 1.6 target for all javac invocations. Clean ups in impl.Future Critical bugfixes/leak fixes/API corrections + ScalaDoc for SIP-14 Print the stack trace. Deprecate all JVM 1.5 targets and make 1.6 default. Shield from InterruptedException in partest. Scaladoc: Adressed @hubertp's comment on scala#925 SI-5784 Scaladoc: Type templates Scaladoc: Groups Better debugging output in GenASM. Updated list of targets allowed in Ant's scalac. WIP add private/lazy checks and a few tests. Removes Float.Epsilon and Double.Epsilon SI-5939 resident compilation of sources in empty package Scaladoc: Typers change SI-6104 support This pattern Make field strict and private. Implement @static annotation on singleton object fields. Fixed SI-6092. Fixed leaky annotations, and relaxed the conditions under which a try-catch is lifted out to an inner method. Fix SI-5937. SI-6089 better tail position analysis for matches SI-5695 removes Context.enclosingApplication SI-5892 allow implicit views in annotation args SI-5739 store sub-patterns in local vals changes error message generated by compiler SI-5856 enables use of $this in string interpolation SI-5895 fixes FieldMirrors SI-5784 Scaladoc: {Abstract,Alias} type templates test case closes SI-6047 Fix for SI-5385. SI-6086 magic symbols strike back Scaladoc: Refactoring the entities SI-5533 Skip scaladoc packages from documentation Scaladoc: updated type class descriptions Scaladoc: Reducing the memory footprint 2 Scaladoc: Reducing the memory footprint SI-3695 SI-4224 SI-4497 SI-5079 scaladoc links SI-4887 Link existentials in scaladoc Scaladoc minor fix: Typos in diagrams SI-4360 Adds prefixes to scaladoc Scaladoc: workaround for untypical Map usecases SI-4324 Scaladoc case class argument currying SI-5558 Package object members indexing SI-5965 Scaladoc crash Scaladoc: Inherited templates in diagrams SI-3314 SI-4888 Scaladoc: Relative type prefixes SI-5235 Correct usecase variable expansion Variation #10 to optimze findMember Attempt #9 to opimize findMember. Attempt #8 to opimize findMember. Attempty #7 to optimize findMember Fixing problem that caused fingerprints to fail in reflection. Also fixed test case that failed when moving to findMembers. Avoids similar problems in the future by renaming nme.ANYNAME Attemmpt #6 to optimize findMember Attempt #5 to optimize findMember. Attempt #4 to optimize findMember Attempt #3 to optimize findMember Attempt #2 to optimize findMember Attempt #1 to optimize findMember Conflicts: test/files/run/existentials-in-compiler.scala
2 parents e52fa7e + fa4c1de commit 7db1915

File tree

279 files changed

+5273
-1990
lines changed

Some content is hidden

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

279 files changed

+5273
-1990
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ all code submitted to the project is unencumbered by copyrights or patents.
200200
The form is available at:
201201
http://www.scala-lang.org/sites/default/files/contributor_agreement.pdf
202202

203+
Before submitting a pull-request, please make sure you have followed the guidelines
204+
outlined in our `Pull Request Policy <https://github.com/scala/scala/wiki/Pull-Request-Policy>`_.
203205

204206
------------------
205207

@@ -208,5 +210,3 @@ http://www.scala-lang.org/sites/default/files/contributor_agreement.pdf
208210
Thank you!
209211

210212
The Scala Team
211-
212-

build.xml

Lines changed: 52 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ INITIALISATION
397397
</target>
398398

399399
<target name="init" depends="init.jars, init.maven.jars, init.version.done, init.fail.bad.jdk, init.warn.jdk7">
400-
<property name="scalac.args.always" value="" />
400+
<property name="scalac.args.always" value="-Yreify-copypaste" />
401401
<!-- scalac.args.optimise is selectively overridden in certain antcall tasks. -->
402402
<property name="scalac.args.optimise" value=""/>
403403
<!-- scalac.args.quickonly are added to quick.* targets but not others (particularly, locker.)
@@ -499,7 +499,7 @@ LOCAL DEPENDENCY (Adapted ASM)
499499
destdir="${build-asm.dir}/classes"
500500
classpath="${build-asm.dir}/classes"
501501
includes="**/*.java"
502-
target="1.5" source="1.5">
502+
target="1.6" source="1.5">
503503
<compilerarg line="${javac.args} -XDignore.symbol.file"/>
504504
</javac>
505505
<touch file="${build-asm.dir}/asm.complete" verbose="no"/>
@@ -540,7 +540,7 @@ LOCAL DEPENDENCY (FORKJOIN)
540540
classpath="${build-libs.dir}/classes/forkjoin"
541541
includes="**/*.java"
542542
debug="true"
543-
target="1.5" source="1.5">
543+
target="1.6" source="1.5">
544544
<compilerarg line="${javac.args} -XDignore.symbol.file"/>
545545
</javac>
546546
<touch file="${build-libs.dir}/forkjoin.complete" verbose="no"/>
@@ -587,7 +587,7 @@ LOCAL DEPENDENCY (FJBG)
587587
classpath="${build-libs.dir}/classes/fjbg"
588588
includes="**/*.java"
589589
debug="true"
590-
target="1.5" source="1.4">
590+
target="1.6" source="1.4">
591591
<compilerarg line="${javac.args} -XDignore.symbol.file"/>
592592
</javac>
593593
<touch file="${build-libs.dir}/fjbg.complete" verbose="no"/>
@@ -635,7 +635,7 @@ LOCAL REFERENCE BUILD (LOCKER)
635635
srcdir="${src.dir}/library"
636636
destdir="${build-locker.dir}/classes/library"
637637
includes="**/*.java"
638-
target="1.5" source="1.5">
638+
target="1.6" source="1.5">
639639
<compilerarg line="${javac.args} -XDignore.symbol.file"/>
640640
<classpath>
641641
<path refid="forkjoin.classpath"/>
@@ -749,7 +749,7 @@ LOCAL REFERENCE BUILD (LOCKER)
749749
includes="**/*.java"
750750
excludes="**/tests/**"
751751
debug="true"
752-
target="1.5" source="1.4">
752+
target="1.6" source="1.4">
753753
<compilerarg line="${javac.args}"/>
754754
</javac>
755755
<scalacfork
@@ -1009,7 +1009,7 @@ QUICK BUILD (QUICK)
10091009
srcdir="${src.dir}/library"
10101010
destdir="${build-quick.dir}/classes/library"
10111011
includes="**/*.java"
1012-
target="1.5" source="1.5">
1012+
target="1.6" source="1.5">
10131013
<compilerarg line="${javac.args} -XDignore.symbol.file"/>
10141014
<classpath>
10151015
<path refid="forkjoin.classpath"/>
@@ -1020,7 +1020,7 @@ QUICK BUILD (QUICK)
10201020
srcdir="${src.dir}/actors"
10211021
destdir="${build-quick.dir}/classes/library"
10221022
includes="**/*.java"
1023-
target="1.5" source="1.5">
1023+
target="1.6" source="1.5">
10241024
<compilerarg line="${javac.args}"/>
10251025
<classpath>
10261026
<path refid="forkjoin.classpath"/>
@@ -1145,7 +1145,7 @@ QUICK BUILD (QUICK)
11451145
includes="**/*.java"
11461146
excludes="**/tests/**"
11471147
debug="true"
1148-
target="1.5" source="1.4">
1148+
target="1.6" source="1.4">
11491149
<compilerarg line="${javac.args}"/>
11501150
</javac>
11511151
<scalacfork
@@ -1349,7 +1349,7 @@ QUICK BUILD (QUICK)
13491349
<javac
13501350
srcdir="${src.dir}/partest"
13511351
destdir="${build-quick.dir}/classes/partest"
1352-
target="1.5" source="1.5">
1352+
target="1.6" source="1.5">
13531353
<classpath>
13541354
<pathelement location="${build-quick.dir}/classes/library"/>
13551355
<pathelement location="${build-quick.dir}/classes/reflect"/>
@@ -1691,7 +1691,7 @@ BOOTSTRAPPING BUILD (STRAP)
16911691
srcdir="${src.dir}/library"
16921692
destdir="${build-strap.dir}/classes/library"
16931693
includes="**/*.java"
1694-
target="1.5" source="1.5">
1694+
target="1.6" source="1.5">
16951695
<compilerarg line="${javac.args} -XDignore.symbol.file"/>
16961696
<classpath>
16971697
<path refid="forkjoin.classpath"/>
@@ -1702,7 +1702,7 @@ BOOTSTRAPPING BUILD (STRAP)
17021702
srcdir="${src.dir}/actors"
17031703
destdir="${build-strap.dir}/classes/library"
17041704
includes="**/*.java"
1705-
target="1.5" source="1.5">
1705+
target="1.6" source="1.5">
17061706
<compilerarg line="${javac.args}"/>
17071707
<classpath>
17081708
<path refid="forkjoin.classpath"/>
@@ -1826,7 +1826,7 @@ BOOTSTRAPPING BUILD (STRAP)
18261826
includes="**/*.java"
18271827
excludes="**/tests/**"
18281828
debug="true"
1829-
target="1.5" source="1.4">
1829+
target="1.6" source="1.4">
18301830
<compilerarg line="${javac.args}"/>
18311831
</javac>
18321832
<scalacfork
@@ -1994,7 +1994,7 @@ BOOTSTRAPPING BUILD (STRAP)
19941994
<javac
19951995
srcdir="${src.dir}/partest"
19961996
destdir="${build-strap.dir}/classes/partest"
1997-
target="1.5" source="1.5">
1997+
target="1.6" source="1.5">
19981998
<classpath>
19991999
<pathelement location="${build-strap.dir}/classes/library"/>
20002000
<pathelement location="${build-strap.dir}/classes/reflect"/>
@@ -2044,7 +2044,7 @@ BOOTSTRAPPING BUILD (STRAP)
20442044
LIBRARIES (Forkjoin, FJBG, ASM)
20452045
============================================================================ -->
20462046

2047-
2047+
20482048
<target name="libs.clean" depends="pack.clean, asm.clean">
20492049
<delete dir="${build-libs.dir}" includeemptydirs="yes" quiet="yes" failonerror="no"/>
20502050
</target>
@@ -2082,8 +2082,9 @@ DOCUMENTATION
20822082
<property name="scaladoc.url" value="https://github.com/scala/scala/tree/${scaladoc.git.commit}/src"/>
20832083
<echo message="Scaladoc will point to ${scaladoc.url} for source files."/>
20842084

2085-
<!-- Unless set with -Dscaladoc.raw.output, it won't be activated -->
2085+
<!-- Unless set with -Dscaladoc.<...>, these won't be activated -->
20862086
<property name="scaladoc.raw.output" value="no"/>
2087+
<property name="scaladoc.no.prefixes" value="no"/>
20872088
</target>
20882089

20892090
<target name="docs.pre-lib" depends="docs.start">
@@ -2111,7 +2112,11 @@ DOCUMENTATION
21112112
classpathref="pack.classpath"
21122113
addparams="${scalac.args.all}"
21132114
docRootContent="${src.dir}/library/rootdoc.txt"
2114-
implicits="on" diagrams="on" rawOutput="${scaladoc.raw.output}">
2115+
implicits="on"
2116+
diagrams="on"
2117+
groups="on"
2118+
rawOutput="${scaladoc.raw.output}"
2119+
noPrefixes="${scaladoc.no.prefixes}">
21152120
<src>
21162121
<files includes="${src.dir}/actors-migration"/>
21172122
<files includes="${src.dir}/actors"/>
@@ -2195,7 +2200,11 @@ DOCUMENTATION
21952200
srcdir="${src.dir}/compiler"
21962201
docRootContent="${src.dir}/compiler/rootdoc.txt"
21972202
addparams="${scalac.args.all}"
2198-
implicits="on" diagrams="on" rawOutput="${scaladoc.raw.output}">
2203+
implicits="on"
2204+
diagrams="on"
2205+
groups="on"
2206+
rawOutput="${scaladoc.raw.output}"
2207+
noPrefixes="${scaladoc.no.prefixes}">
21992208
<include name="**/*.scala"/>
22002209
</scaladoc>
22012210
<touch file="${build-docs.dir}/compiler.complete" verbose="no"/>
@@ -2217,7 +2226,11 @@ DOCUMENTATION
22172226
classpathref="pack.classpath"
22182227
srcdir="${src.dir}/jline/src/main/java"
22192228
addparams="${scalac.args.all}"
2220-
implicits="on" diagrams="on" rawOutput="${scaladoc.raw.output}">
2229+
implicits="on"
2230+
diagrams="on"
2231+
groups="on"
2232+
rawOutput="${scaladoc.raw.output}"
2233+
noPrefixes="${scaladoc.no.prefixes}">
22212234
<include name="**/*.scala"/>
22222235
<include name="**/*.java"/>
22232236
</scaladoc>
@@ -2241,7 +2254,11 @@ DOCUMENTATION
22412254
classpathref="pack.classpath"
22422255
srcdir="${src.dir}/scalap"
22432256
addparams="${scalac.args.all}"
2244-
implicits="on" diagrams="on" rawOutput="${scaladoc.raw.output}">
2257+
implicits="on"
2258+
diagrams="on"
2259+
groups="on"
2260+
rawOutput="${scaladoc.raw.output}"
2261+
noPrefixes="${scaladoc.no.prefixes}">
22452262
<include name="**/*.scala"/>
22462263
</scaladoc>
22472264
<touch file="${build-docs.dir}/scalap.complete" verbose="no"/>
@@ -2263,7 +2280,11 @@ DOCUMENTATION
22632280
classpathref="pack.classpath"
22642281
srcdir="${src.dir}/partest"
22652282
addparams="${scalac.args.all}"
2266-
implicits="on" diagrams="on" rawOutput="${scaladoc.raw.output}">
2283+
implicits="on"
2284+
diagrams="on"
2285+
groups="on"
2286+
rawOutput="${scaladoc.raw.output}"
2287+
noPrefixes="${scaladoc.no.prefixes}">
22672288
<include name="**/*.scala"/>
22682289
</scaladoc>
22692290
<touch file="${build-docs.dir}/partest.complete" verbose="no"/>
@@ -2285,7 +2306,11 @@ DOCUMENTATION
22852306
classpathref="pack.classpath"
22862307
srcdir="${src.dir}/continuations/plugin"
22872308
addparams="${scalac.args.all}"
2288-
implicits="on" diagrams="on" rawOutput="${scaladoc.raw.output}">
2309+
implicits="on"
2310+
diagrams="on"
2311+
groups="on"
2312+
rawOutput="${scaladoc.raw.output}"
2313+
noPrefixes="${scaladoc.no.prefixes}">
22892314
<include name="**/*.scala"/>
22902315
</scaladoc>
22912316
<touch file="${build-docs.dir}/continuations-plugin.complete" verbose="no"/>
@@ -2307,7 +2332,11 @@ DOCUMENTATION
23072332
classpathref="pack.classpath"
23082333
srcdir="${src.dir}/actors-migration"
23092334
addparams="${scalac.args.all}"
2310-
implicits="on" diagrams="on" rawOutput="${scaladoc.raw.output}">
2335+
implicits="on"
2336+
diagrams="on"
2337+
groups="on"
2338+
rawOutput="${scaladoc.raw.output}"
2339+
noPrefixes="${scaladoc.no.prefixes}">
23112340
<include name="**/*.scala"/>
23122341
</scaladoc>
23132342
<touch file="${build-docs.dir}/actors-migration.complete" verbose="no"/>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
259fd9f0a50ed6003248a01a366a97a5549aa386 ?scala-compiler-src.jar
1+
6a03de33fb670e1b1a9930234adb6d1d6435323d ?scala-compiler-src.jar

lib/scala-compiler.jar.desired.sha1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
42f7367cc6ac59022d098e6091e5425390b9c925 ?scala-compiler.jar
1+
cf6aab754bcf77ab433e2b05d1f452e13f24cedc ?scala-compiler.jar
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e31e38414fd19c10add3e65bf77c2fd7c6c26f7d ?scala-library-src.jar
1+
02dcd8656f99eabbad8d9dce06a33d4f6f8d7c38 ?scala-library-src.jar

lib/scala-library.jar.desired.sha1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2418c95bf7db34f87ebda4a5eaa918fe85047afb ?scala-library.jar
1+
6a035e798a94c6ca051e6a7663293cfee3d7136f ?scala-library.jar
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
51c64d77ad4c4233a06cea7ea80b0fb77e9867c4 ?scala-reflect-src.jar
1+
ecb9dd737935812a6399a3426e9126908ef870b2 ?scala-reflect-src.jar

lib/scala-reflect.jar.desired.sha1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5656bf2f17bb9f22b3ba61a83393a9794eaa5429 ?scala-reflect.jar
1+
344f3feafa4bd155b13ba7a6ab3efd605f8f8388 ?scala-reflect.jar

src/compiler/scala/reflect/makro/runtime/Context.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ abstract class Context extends scala.reflect.makro.Context
88
with CapturedVariables
99
with Infrastructure
1010
with Enclosures
11-
with Mirrors
1211
with Names
1312
with Reifiers
1413
with FrontEnds
@@ -23,7 +22,7 @@ abstract class Context extends scala.reflect.makro.Context
2322

2423
val universe: Global
2524

26-
val mirror: MirrorOf[universe.type] = new ContextMirror
25+
val mirror: MirrorOf[universe.type] = universe.rootMirror
2726

2827
val callsiteTyper: universe.analyzer.Typer
2928

src/compiler/scala/reflect/makro/runtime/ContextReifiers.scala

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

src/compiler/scala/reflect/makro/runtime/Enclosures.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ trait Enclosures {
1414
// vals are eager to simplify debugging
1515
// after all we wouldn't save that much time by making them lazy
1616
val macroApplication: Tree = expandee
17-
val enclosingApplication: Tree = enclTrees collectFirst { case t: Apply => t } getOrElse EmptyTree
1817
val enclosingClass: Tree = site.enclClass.tree
1918
val enclosingImplicits: List[(Type, Tree)] = site.openImplicits
2019
val enclosingMacros: List[Context] = this :: universe.analyzer.openMacros // include self

src/compiler/scala/reflect/makro/runtime/Mirrors.scala

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

0 commit comments

Comments
 (0)