File tree 3 files changed +5
-21
lines changed
compiler/src/dotty/tools/dotc 3 files changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -740,8 +740,6 @@ class Definitions {
740
740
def ImplicitNotFoundAnnot (implicit ctx : Context ) = ImplicitNotFoundAnnotType .symbol.asClass
741
741
lazy val ForceInlineAnnotType = ctx.requiredClassRef(" scala.forceInline" )
742
742
def ForceInlineAnnot (implicit ctx : Context ) = ForceInlineAnnotType .symbol.asClass
743
- lazy val RewriteAnnotType = ctx.requiredClassRef(" scala.rewrite" )
744
- def RewriteAnnot (implicit ctx : Context ) = RewriteAnnotType .symbol.asClass
745
743
lazy val TransparentParamAnnotType = ctx.requiredClassRef(" scala.annotation.internal.TransparentParam" )
746
744
def TransparentParamAnnot (implicit ctx : Context ) = TransparentParamAnnotType .symbol.asClass
747
745
lazy val InvariantBetweenAnnotType = ctx.requiredClassRef(" scala.annotation.internal.InvariantBetween" )
@@ -1231,6 +1229,9 @@ class Definitions {
1231
1229
1232
1230
private [this ] var isInitialized = false
1233
1231
1232
+ /** Add a `Tuple` as a parent to `Unit`.
1233
+ * Add the right `*:` instance as a parent to Tuple1..Tuple22
1234
+ */
1234
1235
def fixTupleCompleter (cls : ClassSymbol ): Unit = cls.infoOrCompleter match {
1235
1236
case completer : LazyType =>
1236
1237
cls.info = new LazyType {
@@ -1268,7 +1269,7 @@ class Definitions {
1268
1269
1269
1270
fixTupleCompleter(UnitClass )
1270
1271
for (i <- 1 to MaxTupleArity )
1271
- fixTupleCompleter(TupleType (i).symbol.asClass)
1272
+ fixTupleCompleter(TupleType (i).symbol.asClass)
1272
1273
1273
1274
isInitialized = true
1274
1275
}
Original file line number Diff line number Diff line change @@ -753,8 +753,7 @@ class Namer { typer: Typer =>
753
753
val cls = typedAheadAnnotationClass(annotTree)(annotCtx)
754
754
val ann = Annotation .deferred(cls, implicit ctx => typedAnnotation(annotTree))
755
755
sym.addAnnotation(ann)
756
- if ((cls == defn.ForceInlineAnnot || cls == defn.RewriteAnnot ) &&
757
- sym.is(Method , butNot = Accessor ))
756
+ if (cls == defn.ForceInlineAnnot && sym.is(Method , butNot = Accessor ))
758
757
sym.setFlag(Rewrite )
759
758
}
760
759
case _ =>
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments