1
1
warning: denote infinite loops with `loop { ... }`
2
- --> $DIR/suggestions.rs:46 :5
2
+ --> $DIR/suggestions.rs:42 :5
3
3
|
4
4
LL | while true {
5
5
| ^^^^^^^^^^ help: use `loop`
6
6
|
7
7
= note: `#[warn(while_true)]` on by default
8
8
9
9
warning: unnecessary parentheses around assigned value
10
- --> $DIR/suggestions.rs:49 :31
10
+ --> $DIR/suggestions.rs:45 :31
11
11
|
12
12
LL | let mut registry_no = (format!("NX-{}", 74205));
13
13
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
@@ -18,16 +18,8 @@ note: the lint level is defined here
18
18
LL | #![warn(unused_mut, unused_parens)] // UI tests pass `-A unused`—see Issue #43896
19
19
| ^^^^^^^^^^^^^
20
20
21
- 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
22
- --> $DIR/suggestions.rs:42:1
23
- |
24
- LL | #[no_debug] // should suggest removal of deprecated attribute
25
- | ^^^^^^^^^^^ help: remove this attribute
26
- |
27
- = note: `#[warn(deprecated)]` on by default
28
-
29
21
warning: variable does not need to be mutable
30
- --> $DIR/suggestions.rs:49 :13
22
+ --> $DIR/suggestions.rs:45 :13
31
23
|
32
24
LL | let mut registry_no = (format!("NX-{}", 74205));
33
25
| ----^^^^^^^^^^^
@@ -41,7 +33,7 @@ LL | #![warn(unused_mut, unused_parens)] // UI tests pass `-A unused`—see Issu
41
33
| ^^^^^^^^^^
42
34
43
35
warning: variable does not need to be mutable
44
- --> $DIR/suggestions.rs:55 :13
36
+ --> $DIR/suggestions.rs:51 :13
45
37
|
46
38
LL | let mut
47
39
| _____________^
@@ -53,7 +45,7 @@ LL | || b = 1;
53
45
| help: remove this `mut`
54
46
55
47
error: const items should never be `#[no_mangle]`
56
- --> $DIR/suggestions.rs:6 :14
48
+ --> $DIR/suggestions.rs:5 :14
57
49
|
58
50
LL | #[no_mangle] const DISCOVERY: usize = 1;
59
51
| -----^^^^^^^^^^^^^^^^^^^^^^
@@ -63,7 +55,7 @@ LL | #[no_mangle] const DISCOVERY: usize = 1;
63
55
= note: `#[deny(no_mangle_const_items)]` on by default
64
56
65
57
warning: functions generic over types or consts must be mangled
66
- --> $DIR/suggestions.rs:12 :1
58
+ --> $DIR/suggestions.rs:11 :1
67
59
|
68
60
LL | #[no_mangle]
69
61
| ------------ help: remove this attribute
@@ -74,39 +66,39 @@ LL | pub fn defiant<T>(_t: T) {}
74
66
= note: `#[warn(no_mangle_generic_items)]` on by default
75
67
76
68
warning: the `warp_factor:` in this pattern is redundant
77
- --> $DIR/suggestions.rs:61 :23
69
+ --> $DIR/suggestions.rs:57 :23
78
70
|
79
71
LL | Equinox { warp_factor: warp_factor } => {}
80
72
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `warp_factor`
81
73
|
82
74
= note: `#[warn(non_shorthand_field_patterns)]` on by default
83
75
84
76
error: const items should never be `#[no_mangle]`
85
- --> $DIR/suggestions.rs:22 :18
77
+ --> $DIR/suggestions.rs:21 :18
86
78
|
87
79
LL | #[no_mangle] pub const DAUNTLESS: bool = true;
88
80
| ---------^^^^^^^^^^^^^^^^^^^^^^^^
89
81
| |
90
82
| help: try a static value: `pub static`
91
83
92
84
warning: functions generic over types or consts must be mangled
93
- --> $DIR/suggestions.rs:25 :18
85
+ --> $DIR/suggestions.rs:24 :18
94
86
|
95
87
LL | #[no_mangle] pub fn val_jean<T>() {}
96
88
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^
97
89
| |
98
90
| help: remove this attribute
99
91
100
92
error: const items should never be `#[no_mangle]`
101
- --> $DIR/suggestions.rs:30 :18
93
+ --> $DIR/suggestions.rs:29 :18
102
94
|
103
95
LL | #[no_mangle] pub(crate) const VETAR: bool = true;
104
96
| ----------------^^^^^^^^^^^^^^^^^^^^
105
97
| |
106
98
| help: try a static value: `pub static`
107
99
108
100
warning: functions generic over types or consts must be mangled
109
- --> $DIR/suggestions.rs:33 :18
101
+ --> $DIR/suggestions.rs:32 :18
110
102
|
111
103
LL | #[no_mangle] pub(crate) fn crossfield<T>() {}
112
104
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments