Skip to content

Commit 509f0ce

Browse files
committed
Stylistic changes to Compiler and DPConsoleRunner
1 parent 41d6eb1 commit 509f0ce

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

compiler/src/dotty/tools/dotc/Compiler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class Compiler {
129129
.setMode(Mode.ImplicitsEnabled)
130130
.setTyperState(new MutableTyperState(ctx.typerState, ctx.typerState.reporter, isCommittable = true))
131131
.setFreshNames(new FreshNameCreator.Default)
132-
ctx.initialize()(start) // re-initialize the base context with start
132+
ctx.initialize()(start) // re-initialize the base context with start
133133
def addImport(ctx: Context, refFn: () => TermRef) =
134134
ctx.fresh.setImportInfo(ImportInfo.rootImport(refFn)(ctx))
135135
(start.setRunInfo(new RunInfo(start)) /: defn.RootImportFns)(addImport)

compiler/test/dotty/partest/DPConsoleRunner.scala

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,18 @@ extends SuiteRunner(testSourcePath, fileManager, updateCheck, failed, javaCmdPat
9090
}
9191

9292
/** Some tests require a limitation of resources, tests which are compiled
93-
* with one or more of the flags in this list will be run with
94-
* `limitedThreads`. This is necessary because some test flags require a lot
95-
* of memory when running the compiler and may exhaust the available memory
96-
* when run in parallel with too many other tests.
97-
*
98-
* This number could be increased on the CI, but might fail locally if
99-
* scaled too extreme - override with:
100-
*
101-
* ```
102-
* -Ddotty.tests.limitedThreads=X
103-
* ```
104-
*/
93+
* with one or more of the flags in this list will be run with
94+
* `limitedThreads`. This is necessary because some test flags require a lot
95+
* of memory when running the compiler and may exhaust the available memory
96+
* when run in parallel with too many other tests.
97+
*
98+
* This number could be increased on the CI, but might fail locally if
99+
* scaled too extreme - override with:
100+
*
101+
* ```
102+
* -Ddotty.tests.limitedThreads=X
103+
* ```
104+
*/
105105
def limitResourceFlags = List("-Ytest-pickler")
106106
private val limitedThreads = sys.props.get("dotty.tests.limitedThreads").getOrElse("2")
107107

0 commit comments

Comments
 (0)