2018-08-08 12:28:26 +00:00
|
|
|
error: denote infinite loops with `loop { ... }`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-impl-fn.rs:10:21
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | fn bar(&self) { 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-impl-fn.rs:9:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #[deny(while_true)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: denote infinite loops with `loop { ... }`
|
2019-06-21 23:30:24 +00:00
|
|
|
--> $DIR/lint-impl-fn.rs:18:25
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-06-21 23:30:24 +00:00
|
|
|
LL | fn foo(&self) { while true {} }
|
|
|
|
| ^^^^^^^^^^ help: use `loop`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2019-06-21 23:30:24 +00:00
|
|
|
--> $DIR/lint-impl-fn.rs:13:8
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #[deny(while_true)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: denote infinite loops with `loop { ... }`
|
2019-06-21 23:30:24 +00:00
|
|
|
--> $DIR/lint-impl-fn.rs:27:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-06-21 23:30:24 +00:00
|
|
|
LL | while true {}
|
|
|
|
| ^^^^^^^^^^ help: use `loop`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2019-06-21 23:30:24 +00:00
|
|
|
--> $DIR/lint-impl-fn.rs:25:8
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #[deny(while_true)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|