Skip to content

Commit 0a2df5b

Browse files
committed
Fix bootstrap
1 parent 78f3a99 commit 0a2df5b

Some content is hidden

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

62 files changed

+136
-135
lines changed

compiler/src-bootstrapped/scala/quoted/runtime/impl/QuotesImpl.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
224224

225225
object ClassDef extends ClassDefModule:
226226
def copy(original: Tree)(name: String, constr: DefDef, parents: List[Tree], derived: List[TypeTree], selfOpt: Option[ValDef], body: List[Statement]): ClassDef = {
227-
val dotc.ast.Trees.TypeDef(_, originalImpl: tpd.Template) = original
227+
val dotc.ast.Trees.TypeDef(_, originalImpl: tpd.Template) = original: @unchecked
228228
tpd.cpy.TypeDef(original)(name.toTypeName, tpd.cpy.Template(originalImpl)(constr, parents, derived, selfOpt.getOrElse(tpd.EmptyValDef), body))
229229
}
230230
def unapply(cdef: ClassDef): (String, DefDef, List[Tree /* Term | TypeTree */], List[TypeTree], Option[ValDef], List[Statement]) =
@@ -956,7 +956,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
956956
def qualifier: Term = self.qualifier
957957
def name: String = self.name.toString
958958
def level: Int =
959-
val NameKinds.OuterSelectName(_, levels) = self.name
959+
val NameKinds.OuterSelectName(_, levels) = self.name: @unchecked
960960
levels
961961
end extension
962962
end SelectOuterMethods

compiler/src/dotty/tools/backend/jvm/BCodeBodyBuilder.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
183183
bc.aload(elementType)
184184
}
185185
else if (isArraySet(code)) {
186-
val List(a1, a2) = args
186+
val List(a1, a2) = args: @unchecked
187187
genLoad(a1, INT)
188188
genLoad(a2)
189189
generatedType = UNIT
@@ -335,7 +335,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
335335
// but I was able to derrive it by reading
336336
// AbstractValidatingLambdaMetafactory.validateMetafactoryArgs
337337

338-
val DesugaredSelect(prefix, _) = fun
338+
val DesugaredSelect(prefix, _) = fun: @unchecked
339339
genLoad(prefix)
340340
}
341341

@@ -679,7 +679,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
679679
lineNumber(app)
680680
app match {
681681
case Apply(_, args) if app.symbol eq defn.newArrayMethod =>
682-
val List(elemClaz, Literal(c: Constant), ArrayValue(_, dims)) = args
682+
val List(elemClaz, Literal(c: Constant), ArrayValue(_, dims)) = args: @unchecked
683683

684684
generatedType = toTypeKind(c.typeValue)
685685
mkArrayConstructorCall(generatedType.asArrayBType, app, dims)
@@ -756,7 +756,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
756756
if (invokeStyle.hasInstance) genLoadQualifier(fun)
757757
genLoadArguments(args, paramTKs(app))
758758

759-
val DesugaredSelect(qual, name) = fun // fun is a Select, also checked in genLoadQualifier
759+
val DesugaredSelect(qual, name) = fun: @unchecked // fun is a Select, also checked in genLoadQualifier
760760
val isArrayClone = name == nme.clone_ && qual.tpe.widen.isInstanceOf[JavaArrayType]
761761
if (isArrayClone) {
762762
// Special-case Array.clone, introduced in 36ef60e. The goal is to generate this call
@@ -799,7 +799,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
799799
} // end of genApply()
800800

801801
private def genArrayValue(av: tpd.JavaSeqLiteral): BType = {
802-
val ArrayValue(tpt, elems) = av
802+
val ArrayValue(tpt, elems) = av: @unchecked
803803

804804
lineNumber(av)
805805
genArray(elems, tpt)
@@ -1287,7 +1287,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
12871287
import ScalaPrimitivesOps.{ ZNOT, ZAND, ZOR, EQ }
12881288

12891289
// lhs and rhs of test
1290-
lazy val DesugaredSelect(lhs, _) = fun
1290+
lazy val DesugaredSelect(lhs, _) = fun: @unchecked
12911291
val rhs = if (args.isEmpty) tpd.EmptyTree else args.head // args.isEmpty only for ZNOT
12921292

12931293
def genZandOrZor(and: Boolean): Unit = {

compiler/src/dotty/tools/backend/jvm/BCodeHelpers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ trait BCodeHelpers extends BCodeIdiomatic with BytecodeWriters {
148148
// sorting ensures nested classes are listed after their enclosing class thus satisfying the Eclipse Java compiler
149149
for (nestedClass <- allNestedClasses.sortBy(_.internalName.toString)) {
150150
// Extract the innerClassEntry - we know it exists, enclosingNestedClassesChain only returns nested classes.
151-
val Some(e) = nestedClass.innerClassAttributeEntry
151+
val Some(e) = nestedClass.innerClassAttributeEntry: @unchecked
152152
jclass.visitInnerClass(e.name, e.outerName, e.innerName, e.flags)
153153
}
154154
}

compiler/src/dotty/tools/backend/jvm/BCodeSkelBuilder.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ trait BCodeSkelBuilder extends BCodeHelpers {
663663
val origSym = dd.symbol.asTerm
664664
val newSym = makeStatifiedDefSymbol(origSym, origSym.name)
665665
tpd.DefDef(newSym, { paramRefss =>
666-
val selfParamRef :: regularParamRefs = paramRefss.head
666+
val selfParamRef :: regularParamRefs = paramRefss.head: @unchecked
667667
val enclosingClass = origSym.owner.asClass
668668
new TreeTypeMap(
669669
typeMap = _.substThis(enclosingClass, selfParamRef.symbol.termRef)

compiler/src/dotty/tools/backend/sjs/JSCodeGen.scala

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ class JSCodeGen()(using genCtx: Context) {
12011201
}
12021202

12031203
val (beforeSuper, superCall :: afterSuper) =
1204-
bodyStats.span(!_.isInstanceOf[js.JSSuperConstructorCall])
1204+
bodyStats.span(!_.isInstanceOf[js.JSSuperConstructorCall]): @unchecked
12051205

12061206
assert(!beforeSuper.exists(_.isInstanceOf[js.VarDef]),
12071207
s"Trying to move a local VarDef after the super constructor call of a non-native JS class at ${body.pos}")
@@ -1728,7 +1728,7 @@ class JSCodeGen()(using genCtx: Context) {
17281728
*/
17291729
private def genSuperCall(tree: Apply, isStat: Boolean): js.Tree = {
17301730
implicit val pos = tree.span
1731-
val Apply(fun @ Select(sup @ Super(qual, _), _), args) = tree
1731+
val Apply(fun @ Select(sup @ Super(qual, _), _), args) = tree: @unchecked
17321732
val sym = fun.symbol
17331733

17341734
if (sym == defn.Any_getClass) {
@@ -1769,7 +1769,7 @@ class JSCodeGen()(using genCtx: Context) {
17691769
private def genApplyNew(tree: Apply): js.Tree = {
17701770
implicit val pos: SourcePosition = tree.sourcePos
17711771

1772-
val Apply(fun @ Select(New(tpt), nme.CONSTRUCTOR), args) = tree
1772+
val Apply(fun @ Select(New(tpt), nme.CONSTRUCTOR), args) = tree: @unchecked
17731773
val ctor = fun.symbol
17741774
val tpe = tpt.tpe
17751775

@@ -1818,7 +1818,7 @@ class JSCodeGen()(using genCtx: Context) {
18181818
acquireContextualJSClassValue { jsClassValue =>
18191819
implicit val pos: Position = tree.span
18201820

1821-
val Apply(fun @ Select(New(tpt), _), args) = tree
1821+
val Apply(fun @ Select(New(tpt), _), args) = tree: @unchecked
18221822
val cls = tpt.tpe.typeSymbol
18231823
val ctor = fun.symbol
18241824

@@ -2504,7 +2504,7 @@ class JSCodeGen()(using genCtx: Context) {
25042504

25052505
implicit val pos = tree.span
25062506

2507-
val Apply(fun, args) = tree
2507+
val Apply(fun, args) = tree: @unchecked
25082508
val arrayObj = qualifierOf(fun)
25092509

25102510
val genArray = genExpr(arrayObj)
@@ -2543,7 +2543,7 @@ class JSCodeGen()(using genCtx: Context) {
25432543
/* JavaScript is single-threaded, so we can drop the
25442544
* synchronization altogether.
25452545
*/
2546-
val Apply(fun, List(arg)) = tree
2546+
val Apply(fun, List(arg)) = tree: @unchecked
25472547
val receiver = qualifierOf(fun)
25482548

25492549
val genReceiver = genExpr(receiver)
@@ -2811,7 +2811,7 @@ class JSCodeGen()(using genCtx: Context) {
28112811
private def genJSSuperCall(tree: Apply, isStat: Boolean): js.Tree = {
28122812
acquireContextualJSClassValue { explicitJSSuperClassValue =>
28132813
implicit val pos = tree.span
2814-
val Apply(fun @ Select(sup @ Super(qual, _), _), args) = tree
2814+
val Apply(fun @ Select(sup @ Super(qual, _), _), args) = tree: @unchecked
28152815
val sym = fun.symbol
28162816

28172817
val genReceiver = genExpr(qual)
@@ -2887,7 +2887,7 @@ class JSCodeGen()(using genCtx: Context) {
28872887
/** Gen JS code for a switch-`Match`, which is translated into an IR `js.Match`. */
28882888
def genMatch(tree: Tree, isStat: Boolean): js.Tree = {
28892889
implicit val pos = tree.span
2890-
val Match(selector, cases) = tree
2890+
val Match(selector, cases) = tree: @unchecked
28912891

28922892
def abortMatch(msg: String): Nothing =
28932893
throw new FatalError(s"$msg in switch-like pattern match at ${tree.span}: $tree")
@@ -3098,7 +3098,7 @@ class JSCodeGen()(using genCtx: Context) {
30983098
val call = if (isStaticCall) {
30993099
genApplyStatic(sym, formalCaptures.map(_.ref) ::: actualParams)
31003100
} else {
3101-
val thisCaptureRef :: argCaptureRefs = formalCaptures.map(_.ref)
3101+
val thisCaptureRef :: argCaptureRefs = formalCaptures.map(_.ref): @unchecked
31023102
if (!sym.owner.isNonNativeJSClass || sym.isJSExposed)
31033103
genApplyMethodMaybeStatically(thisCaptureRef, sym, argCaptureRefs ::: actualParams)
31043104
else
@@ -3110,7 +3110,7 @@ class JSCodeGen()(using genCtx: Context) {
31103110
val funInterfaceSym = functionalInterface.tpe.typeSymbol
31113111

31123112
if (jsdefn.isJSThisFunctionClass(funInterfaceSym)) {
3113-
val thisParam :: otherParams = formalParams
3113+
val thisParam :: otherParams = formalParams: @unchecked
31143114
js.Closure(
31153115
arrow = false,
31163116
formalCaptures,
@@ -3610,7 +3610,7 @@ class JSCodeGen()(using genCtx: Context) {
36103610
*/
36113611
private def genReflectiveCall(tree: Apply, isSelectDynamic: Boolean): js.Tree = {
36123612
implicit val pos = tree.span
3613-
val Apply(fun @ Select(receiver, _), args) = tree
3613+
val Apply(fun @ Select(receiver, _), args) = tree: @unchecked
36143614

36153615
val selectedValueTree = js.Apply(js.ApplyFlags.empty, genExpr(receiver),
36163616
js.MethodIdent(selectedValueMethodName), Nil)(jstpe.AnyType)
@@ -3875,7 +3875,7 @@ class JSCodeGen()(using genCtx: Context) {
38753875
private def genCaptureValuesFromFakeNewInstance(tree: Tree): List[js.Tree] = {
38763876
implicit val pos: Position = tree.span
38773877

3878-
val Apply(fun @ Select(New(_), _), args) = tree
3878+
val Apply(fun @ Select(New(_), _), args) = tree: @unchecked
38793879
val sym = fun.symbol
38803880

38813881
/* We use the same strategy as genActualJSArgs to detect which parameters were
@@ -4188,7 +4188,7 @@ class JSCodeGen()(using genCtx: Context) {
41884188
pathName.split('.').toList
41894189

41904190
def parseGlobalPath(pathName: String): Global = {
4191-
val globalRef :: path = parsePath(pathName)
4191+
val globalRef :: path = parsePath(pathName): @unchecked
41924192
Global(globalRef, path)
41934193
}
41944194

compiler/src/dotty/tools/backend/sjs/JSConstructorGen.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ object JSConstructorGen {
270270
(prepStats, applyCtor)
271271
}
272272
val js.ApplyStatic(_, _, js.MethodIdent(ctorName), js.This() :: ctorArgs) =
273-
applyCtor
273+
applyCtor: @unchecked
274274
assert(ctorName.isConstructor,
275275
s"unexpected super constructor call to non-constructor $ctorName at ${applyCtor.pos}")
276276
(prepStats, ctorName, ctorArgs)
@@ -357,7 +357,7 @@ object JSConstructorGen {
357357
case _: js.JSSuperConstructorCall => true
358358
case _ => false
359359
}
360-
}
360+
}: @unchecked
361361

362362
val ctorToChildren = secondaryCtors.map { ctor =>
363363
findCtorForwarderCall(ctor.body.get) -> ctor

compiler/src/dotty/tools/backend/sjs/JSExportsGen.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ final class JSExportsGen(jsCodeGen: JSCodeGen)(using Context) {
390390
None
391391
} else {
392392
val formalArgsRegistry = new FormalArgsRegistry(1, false)
393-
val List(arg) = formalArgsRegistry.genFormalArgs()
393+
val List(arg) = formalArgsRegistry.genFormalArgs(): @unchecked
394394
val body = genExportSameArgc(jsName, formalArgsRegistry, setters.map(Exported.apply), static, None)
395395
Some((arg, body))
396396
}

compiler/src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ object desugar {
390390

391391
/** The expansion of a class definition. See inline comments for what is involved */
392392
def classDef(cdef: TypeDef)(using Context): Tree = {
393-
val impl @ Template(constr0, _, self, _) = cdef.rhs
393+
val impl @ Template(constr0, _, self, _) = cdef.rhs: @unchecked
394394
val className = normalizeName(cdef, impl).asTypeName
395395
val parents = impl.parents
396396
val mods = cdef.mods
@@ -750,7 +750,7 @@ object desugar {
750750

751751
enumCompanionRef match {
752752
case ref: TermRefTree => // have the enum import watch the companion object
753-
val (modVal: ValDef) :: _ = companions
753+
val (modVal: ValDef) :: _ = companions: @unchecked
754754
ref.watching(modVal)
755755
case _ =>
756756
}
@@ -1139,7 +1139,7 @@ object desugar {
11391139

11401140
/** Expand variable identifier x to x @ _ */
11411141
def patternVar(tree: Tree)(using Context): Bind = {
1142-
val Ident(name) = unsplice(tree)
1142+
val Ident(name) = unsplice(tree): @unchecked
11431143
Bind(name, Ident(nme.WILDCARD)).withSpan(tree.span)
11441144
}
11451145

compiler/src/dotty/tools/dotc/ast/TreeTypeMap.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,10 @@ class TreeTypeMap(
140140

141141
private def transformAllParamss(paramss: List[ParamClause]): (TreeTypeMap, List[ParamClause]) = paramss match
142142
case params :: paramss1 =>
143-
val (tmap1, params1: ParamClause) = (params: @unchecked) match
143+
val (tmap1, params1: ParamClause) = (params: @unchecked) match {
144144
case ValDefs(vparams) => transformDefs(vparams)
145145
case TypeDefs(tparams) => transformDefs(tparams)
146+
}: @unchecked
146147
val (tmap2, paramss2) = tmap1.transformAllParamss(paramss1)
147148
(tmap2, params1 :: paramss2)
148149
case nil =>

compiler/src/dotty/tools/dotc/ast/tpd.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
287287
ta.assignType(untpd.TypeDef(sym.name, TypeTree(sym.info)), sym)
288288

289289
def ClassDef(cls: ClassSymbol, constr: DefDef, body: List[Tree], superArgs: List[Tree] = Nil)(using Context): TypeDef = {
290-
val firstParent :: otherParents = cls.info.parents
290+
val firstParent :: otherParents = cls.info.parents: @unchecked
291291
val superRef =
292292
if (cls.is(Trait)) TypeTree(firstParent)
293293
else {

compiler/src/dotty/tools/dotc/config/Settings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ object Settings {
9393
}
9494

9595
def tryToSet(state: ArgsSummary): ArgsSummary = {
96-
val ArgsSummary(sstate, arg :: args, errors, warnings) = state
96+
val ArgsSummary(sstate, arg :: args, errors, warnings) = state: @unchecked
9797
def update(value: Any, args: List[String]) =
9898
var dangers = warnings
9999
val value1 =

compiler/src/dotty/tools/dotc/core/Annotations.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ object Annotations {
184184

185185
def unapply(ann: Annotation)(using Context): Option[Symbol] =
186186
if (ann.symbol == defn.ChildAnnot) {
187-
val AppliedType(_, (arg: NamedType) :: Nil) = ann.tree.tpe
187+
val AppliedType(_, (arg: NamedType) :: Nil) = ann.tree.tpe: @unchecked
188188
Some(arg.symbol)
189189
}
190190
else None

compiler/src/dotty/tools/dotc/core/ConstraintHandling.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ trait ConstraintHandling {
111111
(c1 eq constraint)
112112
|| {
113113
constraint = c1
114-
val TypeBounds(lo, hi) = constraint.entry(param)
114+
val TypeBounds(lo, hi) = constraint.entry(param): @unchecked
115115
isSub(lo, hi)
116116
}
117117
end addOneBound
@@ -226,7 +226,7 @@ trait ConstraintHandling {
226226
*/
227227
protected final def isSatisfiable(using Context): Boolean =
228228
constraint.forallParams { param =>
229-
val TypeBounds(lo, hi) = constraint.entry(param)
229+
val TypeBounds(lo, hi) = constraint.entry(param): @unchecked
230230
isSub(lo, hi) || {
231231
report.log(i"sub fail $lo <:< $hi")
232232
false

compiler/src/dotty/tools/dotc/core/OrderingConstraint.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ class OrderingConstraint(private val boundsMap: ParamBounds,
538538
if (tl.isInstanceOf[HKLambda]) {
539539
// HKLambdas are hash-consed, need to create an artificial difference by adding
540540
// a LazyRef to a bound.
541-
val TypeBounds(lo, hi) :: pinfos1 = tl.paramInfos
541+
val TypeBounds(lo, hi) :: pinfos1 = tl.paramInfos: @unchecked
542542
paramInfos = TypeBounds(lo, LazyRef(hi)) :: pinfos1
543543
}
544544
ensureFresh(tl.newLikeThis(tl.paramNames, paramInfos, tl.resultType))

compiler/src/dotty/tools/dotc/core/TypeComparer.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,8 +2022,8 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
20222022
def lubArgs(args1: List[Type], args2: List[Type], tparams: List[TypeParamInfo], canConstrain: Boolean = false): List[Type] =
20232023
tparams match {
20242024
case tparam :: tparamsRest =>
2025-
val arg1 :: args1Rest = args1
2026-
val arg2 :: args2Rest = args2
2025+
val arg1 :: args1Rest = args1: @unchecked
2026+
val arg2 :: args2Rest = args2: @unchecked
20272027
val common = singletonInterval(arg1, arg2)
20282028
val v = tparam.paramVarianceSign
20292029
val lubArg =
@@ -2054,8 +2054,8 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
20542054
def glbArgs(args1: List[Type], args2: List[Type], tparams: List[TypeParamInfo]): List[Type] =
20552055
tparams match {
20562056
case tparam :: tparamsRest =>
2057-
val arg1 :: args1Rest = args1
2058-
val arg2 :: args2Rest = args2
2057+
val arg1 :: args1Rest = args1: @unchecked
2058+
val arg2 :: args2Rest = args2: @unchecked
20592059
val common = singletonInterval(arg1, arg2)
20602060
val v = tparam.paramVarianceSign
20612061
val glbArg =
@@ -2781,7 +2781,7 @@ class TrackingTypeComparer(initctx: Context) extends TypeComparer(initctx) {
27812781
cas
27822782
}
27832783

2784-
val defn.MatchCase(pat, body) = cas1
2784+
val defn.MatchCase(pat, body) = cas1: @unchecked
27852785

27862786
if (isSubType(scrut, pat))
27872787
// `scrut` is a subtype of `pat`: *It's a Match!*

compiler/src/dotty/tools/dotc/core/TypeErasure.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ class TypeErasure(isJava: Boolean, semiEraseVCs: Boolean, isConstructor: Boolean
515515
}
516516

517517
private def eraseArray(tp: Type)(using Context) = {
518-
val defn.ArrayOf(elemtp) = tp
518+
val defn.ArrayOf(elemtp) = tp: @unchecked
519519
if (classify(elemtp).derivesFrom(defn.NullClass)) JavaArrayType(defn.ObjectType)
520520
else if (isUnboundedGeneric(elemtp) && !isJava) defn.ObjectType
521521
else JavaArrayType(erasureFn(isJava, semiEraseVCs = false, isConstructor, wildcardOK)(elemtp))

compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class ClassfileParser(
253253
*/
254254
def normalizeConstructorParams() = innerClasses.get(currentClassName.toString) match {
255255
case Some(entry) if !isStatic(entry.jflags) =>
256-
val mt @ MethodTpe(paramNames, paramTypes, resultType) = denot.info
256+
val mt @ MethodTpe(paramNames, paramTypes, resultType) = denot.info: @unchecked
257257
var normalizedParamNames = paramNames.tail
258258
var normalizedParamTypes = paramTypes.tail
259259
if ((jflags & JAVA_ACC_SYNTHETIC) != 0) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TastyPickler(val rootCls: ClassSymbol) {
2929
sections.foreach(_._2.assemble())
3030

3131
val nameBufferHash = TastyHash.pjwHash64(nameBuffer.bytes)
32-
val treeSectionHash +: otherSectionHashes = sections.map(x => TastyHash.pjwHash64(x._2.bytes))
32+
val treeSectionHash +: otherSectionHashes = sections.map(x => TastyHash.pjwHash64(x._2.bytes)): @unchecked
3333

3434
// Hash of name table and tree
3535
val uuidLow: Long = nameBufferHash ^ treeSectionHash

0 commit comments

Comments
 (0)