1 warning: unnecessary parentheses around assigned value
2 --> $DIR/suggestions.rs:30:21
4 30 | let mut a = (1); // should suggest no `mut`, no parens
5 | ^^^ help: remove these parentheses
7 = note: #[warn(unused_parens)] on by default
9 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
10 --> $DIR/suggestions.rs:27:1
12 27 | #[no_debug] // should suggest removal of deprecated attribute
13 | ^^^^^^^^^^^ help: remove this attribute
15 = note: #[warn(deprecated)] on by default
17 warning: variable does not need to be mutable
18 --> $DIR/suggestions.rs:30:13
20 30 | let mut a = (1); // should suggest no `mut`, no parens
23 | help: remove this `mut`
25 note: lint level defined here
26 --> $DIR/suggestions.rs:11:9
28 11 | #![warn(unused_mut)] // UI tests pass `-A unused`—see Issue #43896
31 warning: static is marked #[no_mangle], but not exported
32 --> $DIR/suggestions.rs:14:14
34 14 | #[no_mangle] static SHENZHOU: usize = 1; // should suggest `pub`
35 | -^^^^^^^^^^^^^^^^^^^^^^^^^^
37 | help: try making it public: `pub `
39 = note: #[warn(private_no_mangle_statics)] on by default
41 error: const items should never be #[no_mangle]
42 --> $DIR/suggestions.rs:15:14
44 15 | #[no_mangle] const DISCOVERY: usize = 1; // should suggest `pub static` rather than `const`
45 | -----^^^^^^^^^^^^^^^^^^^^^^
47 | help: try a static value: `pub static`
49 = note: #[deny(no_mangle_const_items)] on by default
51 warning: functions generic over types must be mangled
52 --> $DIR/suggestions.rs:18:1
54 17 | #[no_mangle] // should suggest removal (generics can't be no-mangle)
55 | ------------ help: remove this attribute
56 18 | pub fn defiant<T>(_t: T) {}
57 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
59 = note: #[warn(no_mangle_generic_items)] on by default
61 warning: function is marked #[no_mangle], but not exported
62 --> $DIR/suggestions.rs:21:1
64 21 | fn rio_grande() {} // should suggest `pub`
67 | help: try making it public: `pub `
69 = note: #[warn(private_no_mangle_fns)] on by default
71 warning: denote infinite loops with `loop { ... }`
72 --> $DIR/suggestions.rs:29:5
74 29 | while true { // should suggest `loop`
77 | _____help: use `loop`
79 30 | | let mut a = (1); // should suggest no `mut`, no parens
80 31 | | let d = Equinox { warp_factor: 9.975 };
83 35 | | println!("{}", a);
87 = note: #[warn(while_true)] on by default
89 warning: the `warp_factor:` in this pattern is redundant
90 --> $DIR/suggestions.rs:33:23
92 33 | Equinox { warp_factor: warp_factor } => {} // should suggest shorthand
93 | ------------^^^^^^^^^^^^
97 = note: #[warn(non_shorthand_field_patterns)] on by default
99 error: aborting due to previous error