File tree 2 files changed +4
-8
lines changed
compiler/src/dotty/tools/dotc 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,6 @@ object Formatting {
79
79
class SyntaxFormatter (sc : StringContext ) extends StringFormatter (sc) {
80
80
override protected def showArg (arg : Any )(implicit ctx : Context ): String =
81
81
arg match {
82
- case arg : Showable if ctx.settings.color.value != " never" =>
83
- val highlighted =
84
- SyntaxHighlighting (wrapNonSensical(arg, super .showArg(arg)))
85
- new String (highlighted.toArray)
86
82
case hl : Highlight =>
87
83
hl.show
88
84
case hb : HighlightBuffer =>
Original file line number Diff line number Diff line change @@ -744,7 +744,7 @@ object messages {
744
744
val msg =
745
745
hl """ | ${NoColor (msgPrefix)} type arguments for $prettyName$expectedArgString
746
746
|expected: $expectedArgString
747
- |actual: $actualArgString""" .stripMargin
747
+ |actual: ${ NoColor ( actualArgString)} """ .stripMargin
748
748
749
749
val explanation = {
750
750
val tooManyTypeParams =
@@ -1433,11 +1433,11 @@ object messages {
1433
1433
val msg = hl " $tpe does not take type parameters "
1434
1434
1435
1435
private val ps =
1436
- if (params.size == 1 ) hl " a type parameter ${params.head}"
1437
- else hl " type parameters ${params.map(_.show).mkString(" , " )}"
1436
+ if (params.size == 1 ) s " a type parameter ${params.head}"
1437
+ else s " type parameters ${params.map(_.show).mkString(" , " )}"
1438
1438
1439
1439
val explanation =
1440
- i """ You specified $ps for ${hl " $tpe" }, which is not
1440
+ i """ You specified ${ NoColor (ps)} for ${hl " $tpe" }, which is not
1441
1441
|declared to take any.
1442
1442
| """
1443
1443
}
You can’t perform that action at this time.
0 commit comments