mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-20 03:27:30 +00:00

Consider comments and bare delimiters the same as an "empty line" for purposes of hiding rendered code output of long multispans. This results in more aggressive shortening of rendered output without losing too much context, specially in `*.stderr` tests that have "hidden" comments.
54 lines
1.5 KiB
Plaintext
54 lines
1.5 KiB
Plaintext
warning: constant evaluation is taking a long time
|
|
--> $DIR/ctfe-simple-loop.rs:10:5
|
|
|
|
|
LL | / while index < n {
|
|
... |
|
|
LL | | }
|
|
| |_____^
|
|
|
|
|
= note: this lint makes sure the compiler doesn't get stuck due to infinite loops in const eval.
|
|
If your compilation actually takes a long time, you can safely allow the lint.
|
|
help: the constant being evaluated
|
|
--> $DIR/ctfe-simple-loop.rs:19:1
|
|
|
|
|
LL | const X: u32 = simple_loop(19);
|
|
| ^^^^^^^^^^^^
|
|
note: the lint level is defined here
|
|
--> $DIR/ctfe-simple-loop.rs:5:24
|
|
|
|
|
LL | #![cfg_attr(warn, warn(long_running_const_eval))]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: constant evaluation is taking a long time
|
|
--> $DIR/ctfe-simple-loop.rs:10:5
|
|
|
|
|
LL | / while index < n {
|
|
... |
|
|
LL | | }
|
|
| |_____^
|
|
|
|
|
= note: this lint makes sure the compiler doesn't get stuck due to infinite loops in const eval.
|
|
If your compilation actually takes a long time, you can safely allow the lint.
|
|
help: the constant being evaluated
|
|
--> $DIR/ctfe-simple-loop.rs:20:1
|
|
|
|
|
LL | const Y: u32 = simple_loop(35);
|
|
| ^^^^^^^^^^^^
|
|
|
|
warning: constant evaluation is taking a long time
|
|
--> $DIR/ctfe-simple-loop.rs:10:5
|
|
|
|
|
LL | / while index < n {
|
|
... |
|
|
LL | | }
|
|
| |_____^ the const evaluator is currently interpreting this expression
|
|
|
|
|
help: the constant being evaluated
|
|
--> $DIR/ctfe-simple-loop.rs:20:1
|
|
|
|
|
LL | const Y: u32 = simple_loop(35);
|
|
| ^^^^^^^^^^^^
|
|
|
|
warning: 3 warnings emitted
|
|
|