fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
683 B23 linesraw
1error: constant evaluation is taking a long time
2  --> $DIR/ctfe-labelled-loop.rs:6:5
3   |
4LL | /     'mylabel: loop {
5LL | |
6LL | |         if i > n {
7LL | |             break 'mylabel;
8LL | |         }
9LL | |         i += 1;
10LL | |     }
11   | |_____^
12   |
13   = note: this lint makes sure the compiler doesn't get stuck due to infinite loops in const eval.
14           If your compilation actually takes a long time, you can safely allow the lint.
15help: the constant being evaluated
16  --> $DIR/ctfe-labelled-loop.rs:16:1
17   |
18LL | const X: u32 = labelled_loop(19);
19   | ^^^^^^^^^^^^
20   = note: `#[deny(long_running_const_eval)]` on by default
21
22error: aborting due to previous error
23