Skip to content

Commit e99aeee

Browse files
committed
Ensure to use no colors printer when preparing rewrites
1 parent f085145 commit e99aeee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ object Parsers {
11401140
report.errorOrMigrationWarning(AmbiguousNamedTupleInfixApply(), infixOp.right.srcPos, MigrationVersion.AmbiguousNamedTupleInfixApply)
11411141
if MigrationVersion.AmbiguousNamedTupleInfixApply.needsPatch then
11421142
val asApply = cpy.Apply(infixOp)(Select(opInfo.operand, opInfo.operator.name), args)
1143-
patch(source, infixOp.span, asApply.show)
1143+
patch(source, infixOp.span, asApply.show(using ctx.withoutColors))
11441144
asApply // allow to use pre-3.6 syntax in migration mode
11451145
else infixOp
11461146
case _ => infixOp

0 commit comments

Comments
 (0)