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