11warning: constant evaluation is taking a long time
2- --> $DIR/ctfe-simple-loop.rs:9 :5
2+ --> $DIR/ctfe-simple-loop.rs:10 :5
33 |
44LL | / while index < n {
55LL | |
@@ -12,18 +12,18 @@ LL | | }
1212 = note: this lint makes sure the compiler doesn't get stuck due to infinite loops in const eval.
1313 If your compilation actually takes a long time, you can safely allow the lint.
1414help: the constant being evaluated
15- --> $DIR/ctfe-simple-loop.rs:18 :1
15+ --> $DIR/ctfe-simple-loop.rs:19 :1
1616 |
1717LL | const X: u32 = simple_loop(19);
1818 | ^^^^^^^^^^^^
1919note: the lint level is defined here
20- --> $DIR/ctfe-simple-loop.rs:3 :24
20+ --> $DIR/ctfe-simple-loop.rs:5 :24
2121 |
2222LL | #![cfg_attr(warn, warn(long_running_const_eval))]
2323 | ^^^^^^^^^^^^^^^^^^^^^^^
2424
2525warning: constant evaluation is taking a long time
26- --> $DIR/ctfe-simple-loop.rs:9 :5
26+ --> $DIR/ctfe-simple-loop.rs:10 :5
2727 |
2828LL | / while index < n {
2929LL | |
@@ -36,13 +36,13 @@ LL | | }
3636 = note: this lint makes sure the compiler doesn't get stuck due to infinite loops in const eval.
3737 If your compilation actually takes a long time, you can safely allow the lint.
3838help: the constant being evaluated
39- --> $DIR/ctfe-simple-loop.rs:19 :1
39+ --> $DIR/ctfe-simple-loop.rs:20 :1
4040 |
4141LL | const Y: u32 = simple_loop(35);
4242 | ^^^^^^^^^^^^
4343
4444warning: constant evaluation is taking a long time
45- --> $DIR/ctfe-simple-loop.rs:9 :5
45+ --> $DIR/ctfe-simple-loop.rs:10 :5
4646 |
4747LL | / while index < n {
4848LL | |
@@ -53,7 +53,7 @@ LL | | }
5353 | |_____^ the const evaluator is currently interpreting this expression
5454 |
5555help: the constant being evaluated
56- --> $DIR/ctfe-simple-loop.rs:19 :1
56+ --> $DIR/ctfe-simple-loop.rs:20 :1
5757 |
5858LL | const Y: u32 = simple_loop(35);
5959 | ^^^^^^^^^^^^
0 commit comments