1 warning: denote infinite loops with `loop { ... }`
2 --> $DIR/suggestions.rs:46:5
5 | ^^^^^^^^^^ help: use `loop`
7 = note: `#[warn(while_true)]` on by default
9 warning: unnecessary parentheses around assigned value
10 --> $DIR/suggestions.rs:49:31
12 LL | let mut registry_no = (format!("NX-{}", 74205));
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
15 note: the lint level is defined here
16 --> $DIR/suggestions.rs:3:21
18 LL | #![warn(unused_mut, unused_parens)] // UI tests pass `-A unused`—see Issue #43896
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
24 LL | #[no_debug] // should suggest removal of deprecated attribute
25 | ^^^^^^^^^^^ help: remove this attribute
27 = note: `#[warn(deprecated)]` on by default
29 warning: variable does not need to be mutable
30 --> $DIR/suggestions.rs:49:13
32 LL | let mut registry_no = (format!("NX-{}", 74205));
35 | help: remove this `mut`
37 note: the lint level is defined here
38 --> $DIR/suggestions.rs:3:9
40 LL | #![warn(unused_mut, unused_parens)] // UI tests pass `-A unused`—see Issue #43896
43 warning: variable does not need to be mutable
44 --> $DIR/suggestions.rs:55:13
53 | help: remove this `mut`
55 error: const items should never be `#[no_mangle]`
56 --> $DIR/suggestions.rs:6:14
58 LL | #[no_mangle] const DISCOVERY: usize = 1;
59 | -----^^^^^^^^^^^^^^^^^^^^^^
61 | help: try a static value: `pub static`
63 = note: `#[deny(no_mangle_const_items)]` on by default
65 warning: functions generic over types or consts must be mangled
66 --> $DIR/suggestions.rs:12:1
69 | ------------ help: remove this attribute
71 LL | pub fn defiant<T>(_t: T) {}
72 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
74 = note: `#[warn(no_mangle_generic_items)]` on by default
76 warning: the `warp_factor:` in this pattern is redundant
77 --> $DIR/suggestions.rs:61:23
79 LL | Equinox { warp_factor: warp_factor } => {}
80 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `warp_factor`
82 = note: `#[warn(non_shorthand_field_patterns)]` on by default
84 error: const items should never be `#[no_mangle]`
85 --> $DIR/suggestions.rs:22:18
87 LL | #[no_mangle] pub const DAUNTLESS: bool = true;
88 | ---------^^^^^^^^^^^^^^^^^^^^^^^^
90 | help: try a static value: `pub static`
92 warning: functions generic over types or consts must be mangled
93 --> $DIR/suggestions.rs:25:18
95 LL | #[no_mangle] pub fn val_jean<T>() {}
96 | ------------ ^^^^^^^^^^^^^^^^^^^^^^^
98 | help: remove this attribute
100 error: const items should never be `#[no_mangle]`
101 --> $DIR/suggestions.rs:30:18
103 LL | #[no_mangle] pub(crate) const VETAR: bool = true;
104 | ----------------^^^^^^^^^^^^^^^^^^^^
106 | help: try a static value: `pub static`
108 warning: functions generic over types or consts must be mangled
109 --> $DIR/suggestions.rs:33:18
111 LL | #[no_mangle] pub(crate) fn crossfield<T>() {}
112 | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114 | help: remove this attribute
116 error: aborting due to 3 previous errors