@@ -65,6 +65,24 @@ LL | pub fn defiant<T>(_t: T) {}
65
65
|
66
66
= note: #[warn(no_mangle_generic_items)] on by default
67
67
68
+ warning: denote infinite loops with `loop { ... }`
69
+ --> $DIR/suggestions.rs:46:5
70
+ |
71
+ LL | while true {
72
+ | ^^^^^^^^^^ help: use `loop`
73
+ |
74
+ = note: #[warn(while_true)] on by default
75
+
76
+ warning: the `warp_factor:` in this pattern is redundant
77
+ --> $DIR/suggestions.rs:61:23
78
+ |
79
+ LL | Equinox { warp_factor: warp_factor } => {}
80
+ | ------------^^^^^^^^^^^^
81
+ | |
82
+ | help: remove this
83
+ |
84
+ = note: #[warn(non_shorthand_field_patterns)] on by default
85
+
68
86
error: const items should never be #[no_mangle]
69
87
--> $DIR/suggestions.rs:22:18
70
88
|
@@ -97,23 +115,5 @@ LL | #[no_mangle] pub(crate) fn crossfield<T>() {}
97
115
| |
98
116
| help: remove this attribute
99
117
100
- warning: denote infinite loops with `loop { ... }`
101
- --> $DIR/suggestions.rs:46:5
102
- |
103
- LL | while true {
104
- | ^^^^^^^^^^ help: use `loop`
105
- |
106
- = note: #[warn(while_true)] on by default
107
-
108
- warning: the `warp_factor:` in this pattern is redundant
109
- --> $DIR/suggestions.rs:61:23
110
- |
111
- LL | Equinox { warp_factor: warp_factor } => {}
112
- | ------------^^^^^^^^^^^^
113
- | |
114
- | help: remove this
115
- |
116
- = note: #[warn(non_shorthand_field_patterns)] on by default
117
-
118
118
error: aborting due to 3 previous errors
119
119
0 commit comments