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