2018-08-08 07:28:26 -05:00
|
|
|
error: denote infinite loops with `loop { ... }`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-change-warnings.rs:5:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | while true {} //~ ERROR: infinite
|
|
|
|
| ^^^^^^^^^^ help: use `loop`
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-change-warnings.rs:1:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(warnings)]
|
|
|
|
| ^^^^^^^^
|
|
|
|
= note: #[deny(while_true)] implied by #[deny(warnings)]
|
|
|
|
|
|
|
|
warning: denote infinite loops with `loop { ... }`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-change-warnings.rs:15:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | while true {} //~ WARNING: infinite
|
|
|
|
| ^^^^^^^^^^ help: use `loop`
|
|
|
|
|
|
|
|
|
= note: #[warn(while_true)] on by default
|
|
|
|
|
|
|
|
error: denote infinite loops with `loop { ... }`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-change-warnings.rs:20:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | while true {} //~ ERROR: infinite
|
|
|
|
| ^^^^^^^^^^ help: use `loop`
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-change-warnings.rs:18:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #[forbid(warnings)]
|
|
|
|
| ^^^^^^^^
|
|
|
|
= note: #[forbid(while_true)] implied by #[forbid(warnings)]
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|