Skip to content

Commit 33acde7

Browse files
committed
Unbreak the build some more
It's amazing how quickly one deviates from previous syntax if it is not enforced.
1 parent 44d68de commit 33acde7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ trait Implicits { self: Typer =>
652652
type SpecialHandlers = List[(ClassSymbol, SpecialHandler)]
653653

654654
lazy val synthesizedClassTag: SpecialHandler =
655-
(formal: Type, span: Span) => implicit (ctx: Context) => formal.argInfos match {
655+
(formal, span) => implicit ctx => formal.argInfos match {
656656
case arg :: Nil =>
657657
fullyDefinedType(arg, "ClassTag argument", span) match {
658658
case defn.ArrayOf(elemTp) =>
@@ -678,7 +678,7 @@ trait Implicits { self: Typer =>
678678
* `T` is deeply dealiassed to avoid references to local type aliases.
679679
*/
680680
lazy val synthesizedTypeTag: SpecialHandler =
681-
(formal: Type, span: Span) => implicit (ctx: Context) => {
681+
(formal, span) => implicit ctx => {
682682
def quotedType(t: Type) = {
683683
if (StagingContext.level == 0)
684684
ctx.compilationUnit.needsStaging = true // We will need to run ReifyQuotes
@@ -696,12 +696,12 @@ trait Implicits { self: Typer =>
696696
}
697697

698698
lazy val synthesizedTastyContext: SpecialHandler =
699-
(formal: Type, span: Span) => implicit (ctx: Context) =>
699+
(formal, span) => implicit ctx =>
700700
if (ctx.inInlineMethod || enclosingInlineds.nonEmpty) ref(defn.TastyReflection_macroContext)
701701
else EmptyTree
702702

703703
lazy val synthesizedTupleFunction: SpecialHandler =
704-
(formal: Type, span: Span) => implicit (ctx: Context) => formal match {
704+
(formal, span) => implicit ctx => formal match {
705705
case AppliedType(_, funArgs @ fun :: tupled :: Nil) =>
706706
def functionTypeEqual(baseFun: Type, actualArgs: List[Type], actualRet: Type, expected: Type) = {
707707
expected =:= defn.FunctionOf(actualArgs, actualRet, defn.isImplicitFunctionType(baseFun), defn.isErasedFunctionType(baseFun))
@@ -748,7 +748,7 @@ trait Implicits { self: Typer =>
748748
* `Eql.eqlAny[T, U]` as solution.
749749
*/
750750
lazy val synthesizedEq: SpecialHandler =
751-
(formal: Type, span: Span) => implicit (ctx: Context) => {
751+
(formal, span) => implicit ctx => {
752752

753753
/** Is there an `Eql[T, T]` instance, assuming -strictEquality? */
754754
def hasEq(tp: Type)(implicit ctx: Context): Boolean = {
@@ -813,7 +813,7 @@ trait Implicits { self: Typer =>
813813
* An EmptyTree is returned if materialization fails.
814814
*/
815815
lazy val synthesizedValueOf: SpecialHandler =
816-
(formal: Type, span: Span) => implicit (ctx: Context) => {
816+
(formal, span) => implicit ctx => {
817817
def success(t: Tree) = New(defn.ValueOfClass.typeRef.appliedTo(t.tpe), t :: Nil).withSpan(span)
818818

819819
formal.argTypes match {
@@ -873,7 +873,7 @@ trait Implicits { self: Typer =>
873873
* where `T` is a generic product type or a case object or an enum case.
874874
*/
875875
lazy val synthesizedProductMirror: SpecialHandler =
876-
(formal: Type, span: Span) => implicit (ctx: Context) => {
876+
(formal, span) => implicit ctx => {
877877
def mirrorFor(mirroredType0: Type): Tree = {
878878
val mirroredType = mirroredType0.stripTypeVar
879879
mirroredType match {
@@ -933,7 +933,7 @@ trait Implicits { self: Typer =>
933933
* where `T` is a generic sum type.
934934
*/
935935
lazy val synthesizedSumMirror: SpecialHandler =
936-
(formal: Type, span: Span) => implicit (ctx: Context) => {
936+
(formal, span) => implicit ctx => {
937937
formal.member(tpnme.MirroredType).info match {
938938
case TypeBounds(mirroredType0, _) =>
939939
val mirroredType = mirroredType0.stripTypeVar
@@ -1008,7 +1008,7 @@ trait Implicits { self: Typer =>
10081008
* where `T` is a generic sum or product or singleton type.
10091009
*/
10101010
lazy val synthesizedMirror: SpecialHandler =
1011-
(formal: Type, span: Span) => implicit (ctx: Context) => {
1011+
(formal, span) => implicit ctx => {
10121012
formal.member(tpnme.MirroredType).info match {
10131013
case TypeBounds(mirroredType, _) =>
10141014
if (mirroredType.termSymbol.is(CaseVal) || mirroredType.classSymbol.isGenericProduct)

0 commit comments

Comments
 (0)