1 warning: denote infinite loops with `loop { ... }`
2 --> $DIR/suggestions.rs:45:5
5 | ^^^^^^^^^^ help: use `loop`
7 = note: `#[warn(while_true)]` on by default
9 warning: unnecessary parentheses around assigned value
10 --> $DIR/suggestions.rs:48:31
12 LL | let mut registry_no = (format!("NX-{}", 74205));
15 note: the lint level is defined here
16 --> $DIR/suggestions.rs:4:21
18 LL | #![warn(unused_mut, unused_parens)] // UI tests pass `-A unused`—see Issue #43896
20 help: remove these parentheses
22 LL - let mut registry_no = (format!("NX-{}", 74205));
23 LL + let mut registry_no = format!("NX-{}", 74205);
26 warning: variable does not need to be mutable
27 --> $DIR/suggestions.rs:48:13
29 LL | let mut registry_no = (format!("NX-{}", 74205));
32 | help: remove this `mut`
34 note: the lint level is defined here
35 --> $DIR/suggestions.rs:4:9
37 LL | #![warn(unused_mut, unused_parens)] // UI tests pass `-A unused`—see Issue #43896
40 warning: variable does not need to be mutable
41 --> $DIR/suggestions.rs:54:13
50 | help: remove this `mut`
52 error: const items should never be `#[no_mangle]`
53 --> $DIR/suggestions.rs:6:14
55 LL | #[no_mangle] const DISCOVERY: usize = 1;
56 | -----^^^^^^^^^^^^^^^^^^^^^^
58 | help: try a static value: `pub static`
60 = note: `#[deny(no_mangle_const_items)]` on by default
62 warning: functions generic over types or consts must be mangled
63 --> $DIR/suggestions.rs:12:1
66 | ------------ help: remove this attribute
68 LL | pub fn defiant<T>(_t: T) {}
69 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
71 = note: `#[warn(no_mangle_generic_items)]` on by default
73 warning: the `warp_factor:` in this pattern is redundant
74 --> $DIR/suggestions.rs:61:23
76 LL | Equinox { warp_factor: warp_factor } => {}
77 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `warp_factor`
79 = note: `#[warn(non_shorthand_field_patterns)]` on by default
81 error: const items should never be `#[no_mangle]`
82 --> $DIR/suggestions.rs:22:18
84 LL | #[no_mangle] pub const DAUNTLESS: bool = true;
85 | ---------^^^^^^^^^^^^^^^^^^^^^^^^
87 | help: try a static value: `pub static`
89 warning: functions generic over types or consts must be mangled
90 --> $DIR/suggestions.rs:26:18
92 LL | #[no_mangle] pub fn val_jean<T>() {}
93 | ------------ ^^^^^^^^^^^^^^^^^^^^^^^
95 | help: remove this attribute
97 error: const items should never be `#[no_mangle]`
98 --> $DIR/suggestions.rs:31:18
100 LL | #[no_mangle] pub(crate) const VETAR: bool = true;
101 | ----------------^^^^^^^^^^^^^^^^^^^^
103 | help: try a static value: `pub static`
105 warning: functions generic over types or consts must be mangled
106 --> $DIR/suggestions.rs:35:18
108 LL | #[no_mangle] pub(crate) fn crossfield<T>() {}
109 | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111 | help: remove this attribute
113 error: aborting due to 3 previous errors; 8 warnings emitted