fork/rust

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

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

master
803 B27 linesraw
1error: constant evaluation is taking a long time
2  --> $DIR/infinite_loop.rs:6:9
3   |
4LL | /         while n != 0 {
5LL | |
6LL | |             n = if n % 2 == 0 { n / 2 } else { 3 * n + 1 };
7LL | |         }
8   | |_________^
9   |
10   = note: this lint makes sure the compiler doesn't get stuck due to infinite loops in const eval.
11           If your compilation actually takes a long time, you can safely allow the lint.
12help: the constant being evaluated
13  --> $DIR/infinite_loop.rs:4:18
14   |
15LL |       let _ = [(); {
16   |  __________________^
17LL | |         let mut n = 113383; // #20 in https://oeis.org/A006884
18LL | |         while n != 0 {
19LL | |
20...  |
21LL | |         n
22LL | |     }];
23   | |_____^
24   = note: `#[deny(long_running_const_eval)]` on by default
25
26error: aborting due to previous error
27