File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ LL | loop {}
19
19
| ^^^^^^^
20
20
|
21
21
= note: `-D clippy::empty-loop` implied by `-D warnings`
22
- = help: You should either use `panic!()` or add `std::thread::sleep(..);` to the loop body.
22
+ = help: you should either use `panic!()` or add `std::thread::sleep(..);` to the loop body
23
23
24
24
error: aborting due to 2 previous errors
25
25
Original file line number Diff line number Diff line change @@ -5,23 +5,23 @@ LL | loop {}
5
5
| ^^^^^^^
6
6
|
7
7
= note: `-D clippy::empty-loop` implied by `-D warnings`
8
- = help: You should either use `panic!()` or add `std::thread::sleep(..);` to the loop body.
8
+ = help: you should either use `panic!()` or add `std::thread::sleep(..);` to the loop body
9
9
10
10
error: empty `loop {}` wastes CPU cycles
11
11
--> $DIR/empty_loop.rs:11:9
12
12
|
13
13
LL | loop {}
14
14
| ^^^^^^^
15
15
|
16
- = help: You should either use `panic!()` or add `std::thread::sleep(..);` to the loop body.
16
+ = help: you should either use `panic!()` or add `std::thread::sleep(..);` to the loop body
17
17
18
18
error: empty `loop {}` wastes CPU cycles
19
19
--> $DIR/empty_loop.rs:15:9
20
20
|
21
21
LL | 'inner: loop {}
22
22
| ^^^^^^^^^^^^^^^
23
23
|
24
- = help: You should either use `panic!()` or add `std::thread::sleep(..);` to the loop body.
24
+ = help: you should either use `panic!()` or add `std::thread::sleep(..);` to the loop body
25
25
26
26
error: aborting due to 3 previous errors
27
27
Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ LL | loop {}
5
5
| ^^^^^^^
6
6
|
7
7
= note: `-D clippy::empty-loop` implied by `-D warnings`
8
- = help: You should either use `panic!()` or add a call pausing or sleeping the thread to the loop body.
8
+ = help: you should either use `panic!()` or add a call pausing or sleeping the thread to the loop body
9
9
10
10
error: empty `loop {}` wastes CPU cycles
11
11
--> $DIR/empty_loop_no_std.rs:26:5
12
12
|
13
13
LL | loop {}
14
14
| ^^^^^^^
15
15
|
16
- = help: You should either use `panic!()` or add a call pausing or sleeping the thread to the loop body.
16
+ = help: you should either use `panic!()` or add a call pausing or sleeping the thread to the loop body
17
17
18
18
error: aborting due to 2 previous errors
19
19
You can’t perform that action at this time.
0 commit comments