Skip to content

Commit d0bab30

Browse files
Merge pull request #8610 from dotty-staging/elide-noPrinter.println
Elide calls `Printers.noPrinter.println`
2 parents 37eec14 + a64a83f commit d0bab30

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

compiler/src/dotty/tools/dotc/config/Printers.scala

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,42 @@ object Printers {
77
}
88

99
object noPrinter extends Printer {
10-
override def println(msg: => String): Unit = ()
10+
inline override def println(inline msg: => String): Unit = ()
1111
}
1212

13-
val default: Printer = new Printer
13+
val default = new Printer
1414

15-
val constr: Printer = noPrinter
16-
val core: Printer = noPrinter
17-
val checks: Printer = noPrinter
18-
val config: Printer = noPrinter
19-
val cyclicErrors: Printer = noPrinter
20-
val debug = noPrinter // no type annotation here to force inlining
21-
val derive: Printer = noPrinter
22-
val desugar: Printer = noPrinter
23-
val dottydoc: Printer = noPrinter
24-
val exhaustivity: Printer = noPrinter
25-
val gadts: Printer = noPrinter
26-
val gadtsConstr: Printer = noPrinter
27-
val hk: Printer = noPrinter
28-
val implicits: Printer = noPrinter
29-
val implicitsDetailed: Printer = noPrinter
30-
val lexical: Printer = noPrinter
31-
val init: Printer = noPrinter
32-
val inlining: Printer = noPrinter
33-
val interactiv: Printer = noPrinter
34-
val nullables: Printer = noPrinter
35-
val overload: Printer = noPrinter
36-
val patmatch: Printer = noPrinter
37-
val pickling: Printer = noPrinter
38-
val quotePickling: Printer = noPrinter
39-
val plugins: Printer = noPrinter
40-
val simplify: Printer = noPrinter
41-
val staging: Printer = noPrinter
42-
val subtyping: Printer = noPrinter
43-
val tailrec: Printer = noPrinter
44-
val transforms: Printer = noPrinter
45-
val typr: Printer = noPrinter
46-
val unapp: Printer = noPrinter
47-
val variances: Printer = noPrinter
15+
val constr = noPrinter
16+
val core = noPrinter
17+
val checks = noPrinter
18+
val config = noPrinter
19+
val cyclicErrors = noPrinter
20+
val debug = noPrinter
21+
val derive = noPrinter
22+
val desugar = noPrinter
23+
val dottydoc = noPrinter
24+
val exhaustivity = noPrinter
25+
val gadts = noPrinter
26+
val gadtsConstr = noPrinter
27+
val hk = noPrinter
28+
val implicits = noPrinter
29+
val implicitsDetailed = noPrinter
30+
val lexical = noPrinter
31+
val init = noPrinter
32+
val inlining = noPrinter
33+
val interactiv = noPrinter
34+
val nullables = noPrinter
35+
val overload = noPrinter
36+
val patmatch = noPrinter
37+
val pickling = noPrinter
38+
val quotePickling = noPrinter
39+
val plugins = noPrinter
40+
val simplify = noPrinter
41+
val staging = noPrinter
42+
val subtyping = noPrinter
43+
val tailrec = noPrinter
44+
val transforms = noPrinter
45+
val typr = noPrinter
46+
val unapp = noPrinter
47+
val variances = noPrinter
4848
}

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ object MyScalaJSPlugin extends AutoPlugin {
6262
}
6363

6464
object Build {
65-
val referenceVersion = "0.24.0-bin-20200321-4df9b6f-NIGHTLY"
65+
val referenceVersion = "0.24.0-bin-20200325-37eec14-NIGHTLY"
6666

6767
val baseVersion = "0.24.0"
6868
val baseSbtDottyVersion = "0.4.0"

0 commit comments

Comments
 (0)