11warning: denote infinite loops with `loop { ... }`
2- --> $DIR/suggestions.rs:46 :5
2+ --> $DIR/suggestions.rs:42 :5
33 |
44LL | while true {
55 | ^^^^^^^^^^ help: use `loop`
66 |
77 = note: `#[warn(while_true)]` on by default
88
99warning: unnecessary parentheses around assigned value
10- --> $DIR/suggestions.rs:49 :31
10+ --> $DIR/suggestions.rs:45 :31
1111 |
1212LL | let mut registry_no = (format!("NX-{}", 74205));
1313 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
@@ -18,16 +18,8 @@ note: the lint level is defined here
1818LL | #![warn(unused_mut, unused_parens)] // UI tests pass `-A unused`—see Issue #43896
1919 | ^^^^^^^^^^^^^
2020
21- warning: use of deprecated attribute `no_debug`: the `#[no_debug]` attribute was an experimental feature that has been deprecated due to lack of demand. See https://github.com/rust-lang/rust/issues/29721
22- --> $DIR/suggestions.rs:42:1
23- |
24- LL | #[no_debug] // should suggest removal of deprecated attribute
25- | ^^^^^^^^^^^ help: remove this attribute
26- |
27- = note: `#[warn(deprecated)]` on by default
28-
2921warning: variable does not need to be mutable
30- --> $DIR/suggestions.rs:49 :13
22+ --> $DIR/suggestions.rs:45 :13
3123 |
3224LL | let mut registry_no = (format!("NX-{}", 74205));
3325 | ----^^^^^^^^^^^
@@ -41,7 +33,7 @@ LL | #![warn(unused_mut, unused_parens)] // UI tests pass `-A unused`—see Issu
4133 | ^^^^^^^^^^
4234
4335warning: variable does not need to be mutable
44- --> $DIR/suggestions.rs:55 :13
36+ --> $DIR/suggestions.rs:51 :13
4537 |
4638LL | let mut
4739 | _____________^
@@ -53,7 +45,7 @@ LL | || b = 1;
5345 | help: remove this `mut`
5446
5547error: const items should never be `#[no_mangle]`
56- --> $DIR/suggestions.rs:6 :14
48+ --> $DIR/suggestions.rs:5 :14
5749 |
5850LL | #[no_mangle] const DISCOVERY: usize = 1;
5951 | -----^^^^^^^^^^^^^^^^^^^^^^
@@ -63,7 +55,7 @@ LL | #[no_mangle] const DISCOVERY: usize = 1;
6355 = note: `#[deny(no_mangle_const_items)]` on by default
6456
6557warning: functions generic over types or consts must be mangled
66- --> $DIR/suggestions.rs:12 :1
58+ --> $DIR/suggestions.rs:11 :1
6759 |
6860LL | #[no_mangle]
6961 | ------------ help: remove this attribute
@@ -74,39 +66,39 @@ LL | pub fn defiant<T>(_t: T) {}
7466 = note: `#[warn(no_mangle_generic_items)]` on by default
7567
7668warning: the `warp_factor:` in this pattern is redundant
77- --> $DIR/suggestions.rs:61 :23
69+ --> $DIR/suggestions.rs:57 :23
7870 |
7971LL | Equinox { warp_factor: warp_factor } => {}
8072 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `warp_factor`
8173 |
8274 = note: `#[warn(non_shorthand_field_patterns)]` on by default
8375
8476error: const items should never be `#[no_mangle]`
85- --> $DIR/suggestions.rs:22 :18
77+ --> $DIR/suggestions.rs:21 :18
8678 |
8779LL | #[no_mangle] pub const DAUNTLESS: bool = true;
8880 | ---------^^^^^^^^^^^^^^^^^^^^^^^^
8981 | |
9082 | help: try a static value: `pub static`
9183
9284warning: functions generic over types or consts must be mangled
93- --> $DIR/suggestions.rs:25 :18
85+ --> $DIR/suggestions.rs:24 :18
9486 |
9587LL | #[no_mangle] pub fn val_jean<T>() {}
9688 | ------------ ^^^^^^^^^^^^^^^^^^^^^^^
9789 | |
9890 | help: remove this attribute
9991
10092error: const items should never be `#[no_mangle]`
101- --> $DIR/suggestions.rs:30 :18
93+ --> $DIR/suggestions.rs:29 :18
10294 |
10395LL | #[no_mangle] pub(crate) const VETAR: bool = true;
10496 | ----------------^^^^^^^^^^^^^^^^^^^^
10597 | |
10698 | help: try a static value: `pub static`
10799
108100warning: functions generic over types or consts must be mangled
109- --> $DIR/suggestions.rs:33 :18
101+ --> $DIR/suggestions.rs:32 :18
110102 |
111103LL | #[no_mangle] pub(crate) fn crossfield<T>() {}
112104 | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments