File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -77,10 +77,6 @@ object Formatting {
77
77
class SyntaxFormatter (sc : StringContext ) extends StringFormatter (sc) {
78
78
override protected def showArg (arg : Any )(implicit ctx : Context ): String =
79
79
arg match {
80
- case arg : Showable if ctx.settings.color.value != " never" =>
81
- val highlighted =
82
- SyntaxHighlighting (wrapNonSensical(arg, super .showArg(arg)))
83
- new String (highlighted.toArray)
84
80
case hl : Highlight =>
85
81
hl.show
86
82
case hb : HighlightBuffer =>
Original file line number Diff line number Diff line change @@ -729,7 +729,7 @@ object messages {
729
729
val msg =
730
730
hl """ | ${NoColor (msgPrefix)} type arguments for $prettyName$expectedArgString
731
731
|expected: $expectedArgString
732
- |actual: $actualArgString""" .stripMargin
732
+ |actual: ${ NoColor ( actualArgString)} """ .stripMargin
733
733
734
734
val explanation = {
735
735
val tooManyTypeParams =
@@ -1418,11 +1418,11 @@ object messages {
1418
1418
val msg = hl " $tpe does not take type parameters "
1419
1419
1420
1420
private val ps =
1421
- if (params.size == 1 ) hl " a type parameter ${params.head}"
1422
- else hl " type parameters ${params.map(_.show).mkString(" , " )}"
1421
+ if (params.size == 1 ) s " a type parameter ${params.head}"
1422
+ else s " type parameters ${params.map(_.show).mkString(" , " )}"
1423
1423
1424
1424
val explanation =
1425
- i """ You specified $ps for ${hl " $tpe" }, which is not
1425
+ i """ You specified ${ NoColor (ps)} for ${hl " $tpe" }, which is not
1426
1426
|declared to take any.
1427
1427
| """
1428
1428
}
You can’t perform that action at this time.
0 commit comments