1
1
warning: constant evaluation is taking a long time
2
- --> $DIR/ctfe-simple-loop.rs:9 :5
2
+ --> $DIR/ctfe-simple-loop.rs:10 :5
3
3
|
4
4
LL | / while index < n {
5
5
LL | |
@@ -12,18 +12,18 @@ LL | | }
12
12
= note: this lint makes sure the compiler doesn't get stuck due to infinite loops in const eval.
13
13
If your compilation actually takes a long time, you can safely allow the lint.
14
14
help: the constant being evaluated
15
- --> $DIR/ctfe-simple-loop.rs:18 :1
15
+ --> $DIR/ctfe-simple-loop.rs:19 :1
16
16
|
17
17
LL | const X: u32 = simple_loop(19);
18
18
| ^^^^^^^^^^^^
19
19
note: the lint level is defined here
20
- --> $DIR/ctfe-simple-loop.rs:3 :24
20
+ --> $DIR/ctfe-simple-loop.rs:5 :24
21
21
|
22
22
LL | #![cfg_attr(warn, warn(long_running_const_eval))]
23
23
| ^^^^^^^^^^^^^^^^^^^^^^^
24
24
25
25
warning: constant evaluation is taking a long time
26
- --> $DIR/ctfe-simple-loop.rs:9 :5
26
+ --> $DIR/ctfe-simple-loop.rs:10 :5
27
27
|
28
28
LL | / while index < n {
29
29
LL | |
@@ -36,13 +36,13 @@ LL | | }
36
36
= note: this lint makes sure the compiler doesn't get stuck due to infinite loops in const eval.
37
37
If your compilation actually takes a long time, you can safely allow the lint.
38
38
help: the constant being evaluated
39
- --> $DIR/ctfe-simple-loop.rs:19 :1
39
+ --> $DIR/ctfe-simple-loop.rs:20 :1
40
40
|
41
41
LL | const Y: u32 = simple_loop(35);
42
42
| ^^^^^^^^^^^^
43
43
44
44
warning: constant evaluation is taking a long time
45
- --> $DIR/ctfe-simple-loop.rs:9 :5
45
+ --> $DIR/ctfe-simple-loop.rs:10 :5
46
46
|
47
47
LL | / while index < n {
48
48
LL | |
@@ -53,7 +53,7 @@ LL | | }
53
53
| |_____^ the const evaluator is currently interpreting this expression
54
54
|
55
55
help: the constant being evaluated
56
- --> $DIR/ctfe-simple-loop.rs:19 :1
56
+ --> $DIR/ctfe-simple-loop.rs:20 :1
57
57
|
58
58
LL | const Y: u32 = simple_loop(35);
59
59
| ^^^^^^^^^^^^
0 commit comments