Skip to content

Commit 52ac0e6

Browse files
committed
Fix bootstrap
1 parent e555ee0 commit 52ac0e6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
228228
resKind
229229
}
230230

231-
def genPrimitiveOp(tree: Apply, expectedType: BType): BType = tree match {
231+
def genPrimitiveOp(tree: Apply, expectedType: BType): BType = (tree: @unchecked) match {
232232
case Apply(fun @ DesugaredSelect(receiver, _), _) =>
233233
val sym = tree.symbol
234234

@@ -610,7 +610,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
610610
}
611611
}
612612

613-
def genTypeApply(t: TypeApply): BType = t match {
613+
def genTypeApply(t: TypeApply): BType = (t: @unchecked) match {
614614
case TypeApply(fun@DesugaredSelect(obj, _), targs) =>
615615

616616
val sym = fun.symbol

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ trait BCodeSyncAndTry extends BCodeBodyBuilder {
2727
*/
2828
abstract class SyncAndTryBuilder(cunit: CompilationUnit) extends PlainBodyBuilder(cunit) {
2929

30-
def genSynchronized(tree: Apply, expectedType: BType): BType = tree match {
30+
def genSynchronized(tree: Apply, expectedType: BType): BType = (tree: @unchecked) match {
3131
case Apply(TypeApply(fun, _), args) =>
3232
val monitor = locals.makeLocal(ObjectReference, "monitor", defn.ObjectType, tree.span)
3333
val monCleanup = new asm.Label

compiler/src/dotty/tools/dotc/transform/localopt/StringInterpolatorOpt.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class StringInterpolatorOpt extends MiniPhase {
121121
(sym.name == nme.f && sym.eq(defn.StringContext_f)) ||
122122
(sym.name == nme.s && sym.eq(defn.StringContext_s))
123123
if (isInterpolatedMethod)
124-
tree match {
124+
(tree: @unchecked) match {
125125
case StringContextIntrinsic(strs: List[Literal], elems: List[Tree]) =>
126126
val stri = strs.iterator
127127
val elemi = elems.iterator

compiler/src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ trait Applications extends Compatibility {
990990
* { val xs = es; e' = e' + args }
991991
*/
992992
def typedOpAssign(using Context): Tree = {
993-
val (lhs1, name, rhss) = tree match
993+
val (lhs1, name, rhss) = (tree: @unchecked) match
994994
case Apply(Select(lhs, name), rhss) => (typedExpr(lhs), name, rhss)
995995
case Apply(untpd.TypedSplice(Select(lhs1, name)), rhss) => (lhs1, name, rhss)
996996
val liftedDefs = new mutable.ListBuffer[Tree]

0 commit comments

Comments
 (0)