2019-06-21 23:30:24 +00:00
|
|
|
warning: denote infinite loops with `loop { ... }`
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/suggestions.rs:45:5
|
2019-06-21 23:30:24 +00:00
|
|
|
|
|
|
|
|
LL | while true {
|
|
|
|
| ^^^^^^^^^^ help: use `loop`
|
|
|
|
|
|
2019-07-16 20:17:38 +00:00
|
|
|
= note: `#[warn(while_true)]` on by default
|
2019-06-21 23:30:24 +00:00
|
|
|
|
2017-09-30 06:52:51 +00:00
|
|
|
warning: unnecessary parentheses around assigned value
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/suggestions.rs:48:31
|
2017-09-30 06:52:51 +00:00
|
|
|
|
|
2018-10-17 04:36:02 +00:00
|
|
|
LL | let mut registry_no = (format!("NX-{}", 74205));
|
2021-09-09 14:22:24 +00:00
|
|
|
| ^ ^
|
2017-09-30 06:52:51 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/suggestions.rs:4:21
|
2017-10-20 21:00:57 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | #![warn(unused_mut, unused_parens)] // UI tests pass `-A unused`—see Issue #43896
|
2017-10-20 21:00:57 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
2021-09-09 14:22:24 +00:00
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - let mut registry_no = (format!("NX-{}", 74205));
|
|
|
|
LL + let mut registry_no = format!("NX-{}", 74205);
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2017-09-30 06:52:51 +00:00
|
|
|
|
2017-09-15 19:49:10 +00:00
|
|
|
warning: variable does not need to be mutable
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/suggestions.rs:48:13
|
2017-09-15 19:49:10 +00:00
|
|
|
|
|
2018-10-17 04:36:02 +00:00
|
|
|
LL | let mut registry_no = (format!("NX-{}", 74205));
|
|
|
|
| ----^^^^^^^^^^^
|
2017-09-15 19:49:10 +00:00
|
|
|
| |
|
|
|
|
| help: remove this `mut`
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/suggestions.rs:4:9
|
2017-09-15 19:49:10 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | #![warn(unused_mut, unused_parens)] // UI tests pass `-A unused`—see Issue #43896
|
2017-09-15 19:49:10 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2018-01-23 18:54:57 +00:00
|
|
|
warning: variable does not need to be mutable
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/suggestions.rs:54:13
|
2018-01-23 18:54:57 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | let mut
|
2024-06-23 21:33:59 +00:00
|
|
|
| _____________^
|
|
|
|
| |_____________|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | || b = 1;
|
2018-01-23 18:54:57 +00:00
|
|
|
| ||____________-^
|
2022-11-23 22:28:45 +00:00
|
|
|
| |_____________|
|
2018-01-23 18:54:57 +00:00
|
|
|
| help: remove this `mut`
|
|
|
|
|
2019-07-18 22:05:23 +00:00
|
|
|
error: const items should never be `#[no_mangle]`
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/suggestions.rs:6:14
|
2017-10-12 07:42:52 +00:00
|
|
|
|
|
2018-06-28 05:50:24 +00:00
|
|
|
LL | #[no_mangle] const DISCOVERY: usize = 1;
|
2017-10-12 07:42:52 +00:00
|
|
|
| -----^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: try a static value: `pub static`
|
|
|
|
|
|
2019-07-16 20:17:38 +00:00
|
|
|
= note: `#[deny(no_mangle_const_items)]` on by default
|
2017-10-12 07:42:52 +00:00
|
|
|
|
2019-02-15 22:26:36 +00:00
|
|
|
warning: functions generic over types or consts must be mangled
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/suggestions.rs:12:1
|
2017-10-12 07:42:52 +00:00
|
|
|
|
|
2018-06-28 05:50:24 +00:00
|
|
|
LL | #[no_mangle]
|
2017-10-12 07:42:52 +00:00
|
|
|
| ------------ help: remove this attribute
|
2019-03-09 12:03:44 +00:00
|
|
|
LL |
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | pub fn defiant<T>(_t: T) {}
|
2017-10-12 07:42:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2019-07-16 20:17:38 +00:00
|
|
|
= note: `#[warn(no_mangle_generic_items)]` on by default
|
2017-10-12 07:42:52 +00:00
|
|
|
|
2019-03-13 01:55:37 +00:00
|
|
|
warning: the `warp_factor:` in this pattern is redundant
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/suggestions.rs:61:23
|
2019-03-13 01:55:37 +00:00
|
|
|
|
|
|
|
|
LL | Equinox { warp_factor: warp_factor } => {}
|
2019-12-21 22:59:38 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `warp_factor`
|
2019-03-13 01:55:37 +00:00
|
|
|
|
|
2019-07-16 20:17:38 +00:00
|
|
|
= note: `#[warn(non_shorthand_field_patterns)]` on by default
|
2019-03-13 01:55:37 +00:00
|
|
|
|
2019-07-18 22:05:23 +00:00
|
|
|
error: const items should never be `#[no_mangle]`
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/suggestions.rs:22:18
|
2017-10-12 07:42:52 +00:00
|
|
|
|
|
2018-09-21 22:58:11 +00:00
|
|
|
LL | #[no_mangle] pub const DAUNTLESS: bool = true;
|
|
|
|
| ---------^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: try a static value: `pub static`
|
2017-10-12 07:42:52 +00:00
|
|
|
|
2019-02-15 22:26:36 +00:00
|
|
|
warning: functions generic over types or consts must be mangled
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/suggestions.rs:26:18
|
2018-06-28 05:50:24 +00:00
|
|
|
|
|
2018-09-21 22:58:11 +00:00
|
|
|
LL | #[no_mangle] pub fn val_jean<T>() {}
|
|
|
|
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: remove this attribute
|
2018-01-16 02:32:18 +00:00
|
|
|
|
2019-07-18 22:05:23 +00:00
|
|
|
error: const items should never be `#[no_mangle]`
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/suggestions.rs:31:18
|
2018-01-16 02:32:18 +00:00
|
|
|
|
|
2018-09-21 22:58:11 +00:00
|
|
|
LL | #[no_mangle] pub(crate) const VETAR: bool = true;
|
|
|
|
| ----------------^^^^^^^^^^^^^^^^^^^^
|
2018-06-28 05:30:23 +00:00
|
|
|
| |
|
2018-09-21 22:58:11 +00:00
|
|
|
| help: try a static value: `pub static`
|
2018-06-28 05:30:23 +00:00
|
|
|
|
2019-02-15 22:26:36 +00:00
|
|
|
warning: functions generic over types or consts must be mangled
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/suggestions.rs:35:18
|
2018-06-28 05:30:23 +00:00
|
|
|
|
|
2018-09-21 22:58:11 +00:00
|
|
|
LL | #[no_mangle] pub(crate) fn crossfield<T>() {}
|
|
|
|
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: remove this attribute
|
2018-06-28 05:30:23 +00:00
|
|
|
|
2020-03-11 15:30:09 +00:00
|
|
|
error: aborting due to 3 previous errors; 8 warnings emitted
|
2017-10-12 07:42:52 +00:00
|
|
|
|