@@ -65,6 +65,24 @@ LL | pub fn defiant<T>(_t: T) {}
6565 |
6666 = note: #[warn(no_mangle_generic_items)] on by default
6767
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+
6886error: const items should never be #[no_mangle]
6987 --> $DIR/suggestions.rs:22:18
7088 |
@@ -97,23 +115,5 @@ LL | #[no_mangle] pub(crate) fn crossfield<T>() {}
97115 | |
98116 | help: remove this attribute
99117
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-
118118error: aborting due to 3 previous errors
119119
0 commit comments