2018-08-08 12:28:26 +00:00
|
|
|
error: denote infinite loops with `loop { ... }`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-change-warnings.rs:5:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | while true {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^ help: use `loop`
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-change-warnings.rs:1:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(warnings)]
|
|
|
|
| ^^^^^^^^
|
2019-07-16 20:17:38 +00:00
|
|
|
= note: `#[deny(while_true)]` implied by `#[deny(warnings)]`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
warning: denote infinite loops with `loop { ... }`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-change-warnings.rs:15:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | while true {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^ help: use `loop`
|
|
|
|
|
|
2019-07-16 20:17:38 +00:00
|
|
|
= note: `#[warn(while_true)]` on by default
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: denote infinite loops with `loop { ... }`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-change-warnings.rs:20:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | while true {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^ help: use `loop`
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-change-warnings.rs:18:10
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #[forbid(warnings)]
|
|
|
|
| ^^^^^^^^
|
2019-07-16 20:17:38 +00:00
|
|
|
= note: `#[forbid(while_true)]` implied by `#[forbid(warnings)]`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-03-11 15:30:09 +00:00
|
|
|
error: aborting due to 2 previous errors; 1 warning emitted
|
2018-08-08 12:28:26 +00:00
|
|
|
|