Skip to content

Commit eeb314f

Browse files
committed
TreeUnpickler: avoid forcing annotations early
This sometimes lead to cycles when compiling the 2.13 stdlib and shouldn't be necessary anymore (all the tests pass).
1 parent ad94ab5 commit eeb314f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -839,13 +839,6 @@ class TreeUnpickler(reader: TastyReader,
839839
DefDef(Nil, Nil, tpt)
840840
}
841841
}
842-
val mods =
843-
if (sym.annotations.isEmpty) untpd.EmptyModifiers
844-
else untpd.Modifiers(annotations = sym.annotations.map(_.tree))
845-
tree.withMods(mods)
846-
// record annotations in tree so that tree positions can be filled in.
847-
// Note: Once the inline PR with its changes to positions is in, this should be
848-
// no longer necessary.
849842
goto(end)
850843
setSpan(start, tree)
851844
if (!sym.isType) { // Only terms might have leaky aliases, see the documentation of `checkNoPrivateLeaks`

0 commit comments

Comments
 (0)