fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: constant evaluation is taking a long time 2 --> $DIR/issue-52475.rs:5:9 3 | 4LL | / while n < 5 { 5LL | | 6LL | | n = (n + 1) % 5; 7LL | | x = &0; // Materialize a new AllocId 8LL | | } 9 | |_________^ 10 | 11 = note: this lint makes sure the compiler doesn't get stuck due to infinite loops in const eval. 12 If your compilation actually takes a long time, you can safely allow the lint. 13help: the constant being evaluated 14 --> $DIR/issue-52475.rs:2:18 15 | 16LL | let _ = [(); { 17 | __________________^ 18LL | | let mut x = &0; 19LL | | let mut n = 0; 20LL | | while n < 5 { 21... | 22LL | | 0 23LL | | }]; 24 | |_____^ 25 = note: `#[deny(long_running_const_eval)]` on by default 26 27error: aborting due to previous error 28