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