warning: unnecessary parentheses around assigned value --> $DIR/suggestions.rs:64:21 | LL | let mut a = (1); | ^^^ help: remove these parentheses | note: lint level defined here --> $DIR/suggestions.rs:13:21 | LL | #![warn(unused_mut, unused_parens)] // UI tests pass `-A unused`—see Issue #43896 | ^^^^^^^^^^^^^ 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 --> $DIR/suggestions.rs:57:1 | LL | #[no_debug] // should suggest removal of deprecated attribute | ^^^^^^^^^^^ help: remove this attribute | = note: #[warn(deprecated)] on by default warning: variable does not need to be mutable --> $DIR/suggestions.rs:64:13 | LL | let mut a = (1); | ----^ | | | help: remove this `mut` | note: lint level defined here --> $DIR/suggestions.rs:13:9 | LL | #![warn(unused_mut, unused_parens)] // UI tests pass `-A unused`—see Issue #43896 | ^^^^^^^^^^ warning: variable does not need to be mutable --> $DIR/suggestions.rs:70:13 | LL | let mut | _____________^ | |_____________| | || LL | || b = 1; | ||____________-^ | |____________| | help: remove this `mut` warning: static is marked #[no_mangle], but not exported --> $DIR/suggestions.rs:16:14 | LL | #[no_mangle] static SHENZHOU: usize = 1; | -^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | help: try making it public: `pub` | = note: #[warn(private_no_mangle_statics)] on by default error: const items should never be #[no_mangle] --> $DIR/suggestions.rs:19:14 | LL | #[no_mangle] const DISCOVERY: usize = 1; | -----^^^^^^^^^^^^^^^^^^^^^^ | | | help: try a static value: `pub static` | = note: #[deny(no_mangle_const_items)] on by default warning: functions generic over types must be mangled --> $DIR/suggestions.rs:25:1 | LL | #[no_mangle] | ------------ help: remove this attribute LL | //~^ HELP remove this attribute LL | pub fn defiant(_t: T) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: #[warn(no_mangle_generic_items)] on by default warning: function is marked #[no_mangle], but not exported --> $DIR/suggestions.rs:29:1 | LL | fn rio_grande() {} | -^^^^^^^^^^^^^^^^^ | | | help: try making it public: `pub` | = note: #[warn(private_no_mangle_fns)] on by default warning: static is marked #[no_mangle], but not exported --> $DIR/suggestions.rs:37:18 | LL | #[no_mangle] pub static DAUNTLESS: bool = true; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: try exporting the item with a `pub use` statement warning: function is marked #[no_mangle], but not exported --> $DIR/suggestions.rs:40:18 | LL | #[no_mangle] pub fn val_jean() {} | ^^^^^^^^^^^^^^^^^^^^ | = help: try exporting the item with a `pub use` statement warning: static is marked #[no_mangle], but not exported --> $DIR/suggestions.rs:45:18 | LL | #[no_mangle] pub(crate) static VETAR: bool = true; | ----------^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | help: try making it public: `pub` warning: function is marked #[no_mangle], but not exported --> $DIR/suggestions.rs:48:18 | LL | #[no_mangle] pub(crate) fn crossfield() {} | ----------^^^^^^^^^^^^^^^^^^^ | | | help: try making it public: `pub` warning: denote infinite loops with `loop { ... }` --> $DIR/suggestions.rs:61:5 | LL | while true { | ^^^^^^^^^^ help: use `loop` | = note: #[warn(while_true)] on by default warning: the `warp_factor:` in this pattern is redundant --> $DIR/suggestions.rs:76:23 | LL | Equinox { warp_factor: warp_factor } => {} | ------------^^^^^^^^^^^^ | | | help: remove this | = note: #[warn(non_shorthand_field_patterns)] on by default error: aborting due to previous error