Skip to content

Commit d3331ee

Browse files
committed
Fix #12267: Constraints should not cross phases
1 parent afbe02d commit d3331ee

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

bench/profiles/stdlib.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
charts:
2+
3+
- name: "scala stdlib-2.13"
4+
url: https://github.com/dotty-staging/scala/commits/stdLib213-dotty-community-build
5+
lines:
6+
- key: stdlib213
7+
label: bootstrapped
8+
9+
scripts:
10+
11+
stdlib213:
12+
- source $PROG_HOME/dotty/bench/scripts/stdlib213
13+
14+
config:
15+
pr_base_url: "https://github.com/lampepfl/dotty/pull/"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
202202
Stats.trackTime(s"$phase ms ") {
203203
val start = System.currentTimeMillis
204204
val profileBefore = profiler.beforePhase(phase)
205+
ctx.typerState.constraint = OrderingConstraint.empty
205206
units = phase.runOn(units)
206207
profiler.afterPhase(phase, profileBefore)
207208
if (ctx.settings.Xprint.value.containsPhase(phase))

compiler/src/dotty/tools/dotc/util/Stats.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import collection.mutable
99

1010
@sharable object Stats {
1111

12-
final val enabled = true
12+
final val enabled = false
1313

1414
var monitored: Boolean = false
1515

0 commit comments

Comments
 (0)