Skip to content

Commit 4d2133c

Browse files
committed
rename a test which checks long constant evaluation causes dead codes
1 parent 11c5ecd commit 4d2133c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ui/consts/do-not-ice-long-constant-evaluation-in-for-loop.stderr renamed to tests/ui/consts/long-constant-evaluation-cause-dead-code.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error: constant evaluation is taking a long time
2-
--> $DIR/do-not-ice-long-constant-evaluation-in-for-loop.rs:10:14
2+
--> $DIR/long-constant-evaluation-cause-dead-code.rs:10:14
33
|
44
LL | [(); loop {}];
55
| ^^^^^^^
66
|
77
= note: this lint makes sure the compiler doesn't get stuck due to infinite loops in const eval.
88
If your compilation actually takes a long time, you can safely allow the lint.
99
help: the constant being evaluated
10-
--> $DIR/do-not-ice-long-constant-evaluation-in-for-loop.rs:10:14
10+
--> $DIR/long-constant-evaluation-cause-dead-code.rs:10:14
1111
|
1212
LL | [(); loop {}];
1313
| ^^^^^^^

0 commit comments

Comments
 (0)