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