diff --git a/src/test/ui/lint/lint-impl-fn.stderr b/src/test/ui/lint/lint-impl-fn.stderr index 2c9a264287c9..56f85111d428 100644 --- a/src/test/ui/lint/lint-impl-fn.stderr +++ b/src/test/ui/lint/lint-impl-fn.stderr @@ -10,18 +10,6 @@ note: lint level defined here LL | #[deny(while_true)] | ^^^^^^^^^^ -error: denote infinite loops with `loop { ... }` - --> $DIR/lint-impl-fn.rs:18:25 - | -LL | fn foo(&self) { while true {} } - | ^^^^^^^^^^ help: use `loop` - | -note: lint level defined here - --> $DIR/lint-impl-fn.rs:13:8 - | -LL | #[deny(while_true)] - | ^^^^^^^^^^ - error: denote infinite loops with `loop { ... }` --> $DIR/lint-impl-fn.rs:27:5 | @@ -34,5 +22,17 @@ note: lint level defined here LL | #[deny(while_true)] | ^^^^^^^^^^ +error: denote infinite loops with `loop { ... }` + --> $DIR/lint-impl-fn.rs:18:25 + | +LL | fn foo(&self) { while true {} } + | ^^^^^^^^^^ help: use `loop` + | +note: lint level defined here + --> $DIR/lint-impl-fn.rs:13:8 + | +LL | #[deny(while_true)] + | ^^^^^^^^^^ + error: aborting due to 3 previous errors diff --git a/src/test/ui/lint/suggestions.stderr b/src/test/ui/lint/suggestions.stderr index c28814aeee8f..5aaa9947f998 100644 --- a/src/test/ui/lint/suggestions.stderr +++ b/src/test/ui/lint/suggestions.stderr @@ -65,6 +65,24 @@ LL | pub fn defiant(_t: T) {} | = note: #[warn(no_mangle_generic_items)] on by default +warning: denote infinite loops with `loop { ... }` + --> $DIR/suggestions.rs:46:5 + | +LL | while true { + | ^^^^^^^^^^ help: use `loop` + | + = note: #[warn(while_true)] on by default + +warning: the `warp_factor:` in this pattern is redundant + --> $DIR/suggestions.rs:61:23 + | +LL | Equinox { warp_factor: warp_factor } => {} + | ------------^^^^^^^^^^^^ + | | + | help: remove this + | + = note: #[warn(non_shorthand_field_patterns)] on by default + error: const items should never be #[no_mangle] --> $DIR/suggestions.rs:22:18 | @@ -97,23 +115,5 @@ LL | #[no_mangle] pub(crate) fn crossfield() {} | | | help: remove this attribute -warning: denote infinite loops with `loop { ... }` - --> $DIR/suggestions.rs:46:5 - | -LL | while true { - | ^^^^^^^^^^ help: use `loop` - | - = note: #[warn(while_true)] on by default - -warning: the `warp_factor:` in this pattern is redundant - --> $DIR/suggestions.rs:61:23 - | -LL | Equinox { warp_factor: warp_factor } => {} - | ------------^^^^^^^^^^^^ - | | - | help: remove this - | - = note: #[warn(non_shorthand_field_patterns)] on by default - error: aborting due to 3 previous errors