Skip to content

Commit 0a0c8ae

Browse files
committed
Merge pull request scala#2843 from xeno-by/topic/kill-introduce-top-level
kills introduceTopLevel
2 parents 71ddc4f + 4a27365 commit 0a0c8ae

23 files changed

+3
-358
lines changed

src/compiler/scala/reflect/macros/contexts/Context.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ abstract class Context extends scala.reflect.macros.Context
1414
with Parsers
1515
with Evals
1616
with ExprUtils
17-
with Synthetics
1817
with Traces {
1918

2019
val universe: Global

src/compiler/scala/reflect/macros/contexts/Synthetics.scala

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

src/compiler/scala/tools/nsc/CompilationUnits.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ trait CompilationUnits { self: Global =>
5757
// SBT compatibility (SI-6875)
5858
//
5959
// imagine we have a file named A.scala, which defines a trait named Foo and a module named Main
60-
// Main contains a call to a macro, which calls c.introduceTopLevel to define a mock for Foo
61-
// c.introduceTopLevel creates a virtual file Virt35af32.scala, which contains a class named FooMock extending Foo,
60+
// Main contains a call to a macro, which calls compileLate to define a mock for Foo
61+
// compileLate creates a virtual file Virt35af32.scala, which contains a class named FooMock extending Foo,
6262
// and macro expansion instantiates FooMock. the stage is now set. let's see what happens next.
6363
//
6464
// without this workaround in scalac or without being patched itself, sbt will think that

src/reflect/scala/reflect/macros/Context.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ trait Context extends Aliases
3737
with Typers
3838
with Parsers
3939
with Evals
40-
with ExprUtils
41-
with Synthetics {
40+
with ExprUtils {
4241

4342
/** The compile-time universe. */
4443
val universe: Universe

src/reflect/scala/reflect/macros/Synthetics.scala

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

test/files/run/macro-expand-unapply-b.check

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

test/files/run/macro-expand-unapply-b.flags

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/files/run/macro-expand-unapply-b/Impls_Macros_1.scala

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

test/files/run/macro-expand-unapply-b/Test_2.scala

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

test/files/run/macro-toplevel-companion-a.check

Whitespace-only changes.

0 commit comments

Comments
 (0)