Skip to content

Commit f926c8c

Browse files
committed
Remove useless options in tests
- Removed "-Xprint-types", it is only rarely needed and makes it very hard to read trees, enable it yourself if you need it. - Removed "-Ylog:<some", this does not seem to have any effect currently. - Removed "-pagewidth 90", this is overloaded in tests.scala to 160 anyway.
1 parent d6a52ee commit f926c8c

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

test/dotty/partest/DPDirectCompiler.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ class DPDirectCompiler(runner: DPTestRunner) extends nest.DirectCompiler(runner)
1515

1616
implicit val ctx: dotty.tools.dotc.core.Contexts.Context = {
1717
val base = new dotty.tools.dotc.core.Contexts.ContextBase
18-
import base.settings._
19-
val ctx = base.initialCtx.fresh.setSetting(printtypes, true)
20-
.setSetting(pageWidth, 90).setSetting(log, List("<some"))
18+
val ctx = base.initialCtx.fresh
2119
base.definitions.init(ctx)
2220
ctx
2321
}

test/test/DottyTest.scala

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@ class DottyTest /*extends ContextEscapeDetection*/ {
2222
val base = new ContextBase
2323
import base.settings._
2424
val ctx = base.initialCtx.fresh
25-
//.setSetting(verbose, true)
26-
// .withSetting(debug, true)
27-
// .withSetting(debugTrace, true)
28-
// .withSetting(prompt, true)
29-
//.setSetting(Ylogcp, true)
30-
//.setSetting(printtypes, true)
31-
.setSetting(pageWidth, 90)
32-
.setSetting(log, List("<some"))
33-
// .withTyperState(new TyperState(new ConsoleReporter()(base.initialCtx)))
34-
35-
// .withSetting(uniqid, true)
3625
base.definitions.init(ctx)
3726
ctx
3827
}

0 commit comments

Comments
 (0)