mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
Update tests
This commit is contained in:
parent
32bc4a50c0
commit
00d8fa3fdb
@ -10,18 +10,6 @@ note: lint level defined here
|
|||||||
LL | #[deny(while_true)]
|
LL | #[deny(while_true)]
|
||||||
| ^^^^^^^^^^
|
| ^^^^^^^^^^
|
||||||
|
|
||||||
error: denote infinite loops with `loop { ... }`
|
|
||||||
--> $DIR/lint-impl-fn.rs:18:25
|
|
||||||
|
|
|
||||||
LL | fn foo(&self) { while true {} }
|
|
||||||
| ^^^^^^^^^^ help: use `loop`
|
|
||||||
|
|
|
||||||
note: lint level defined here
|
|
||||||
--> $DIR/lint-impl-fn.rs:13:8
|
|
||||||
|
|
|
||||||
LL | #[deny(while_true)]
|
|
||||||
| ^^^^^^^^^^
|
|
||||||
|
|
||||||
error: denote infinite loops with `loop { ... }`
|
error: denote infinite loops with `loop { ... }`
|
||||||
--> $DIR/lint-impl-fn.rs:27:5
|
--> $DIR/lint-impl-fn.rs:27:5
|
||||||
|
|
|
|
||||||
@ -34,5 +22,17 @@ note: lint level defined here
|
|||||||
LL | #[deny(while_true)]
|
LL | #[deny(while_true)]
|
||||||
| ^^^^^^^^^^
|
| ^^^^^^^^^^
|
||||||
|
|
||||||
|
error: denote infinite loops with `loop { ... }`
|
||||||
|
--> $DIR/lint-impl-fn.rs:18:25
|
||||||
|
|
|
||||||
|
LL | fn foo(&self) { while true {} }
|
||||||
|
| ^^^^^^^^^^ help: use `loop`
|
||||||
|
|
|
||||||
|
note: lint level defined here
|
||||||
|
--> $DIR/lint-impl-fn.rs:13:8
|
||||||
|
|
|
||||||
|
LL | #[deny(while_true)]
|
||||||
|
| ^^^^^^^^^^
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
error: aborting due to 3 previous errors
|
||||||
|
|
||||||
|
@ -65,6 +65,24 @@ LL | pub fn defiant<T>(_t: T) {}
|
|||||||
|
|
|
|
||||||
= note: #[warn(no_mangle_generic_items)] on by default
|
= note: #[warn(no_mangle_generic_items)] on by default
|
||||||
|
|
||||||
|
warning: denote infinite loops with `loop { ... }`
|
||||||
|
--> $DIR/suggestions.rs:46:5
|
||||||
|
|
|
||||||
|
LL | while true {
|
||||||
|
| ^^^^^^^^^^ help: use `loop`
|
||||||
|
|
|
||||||
|
= note: #[warn(while_true)] on by default
|
||||||
|
|
||||||
|
warning: the `warp_factor:` in this pattern is redundant
|
||||||
|
--> $DIR/suggestions.rs:61:23
|
||||||
|
|
|
||||||
|
LL | Equinox { warp_factor: warp_factor } => {}
|
||||||
|
| ------------^^^^^^^^^^^^
|
||||||
|
| |
|
||||||
|
| help: remove this
|
||||||
|
|
|
||||||
|
= note: #[warn(non_shorthand_field_patterns)] on by default
|
||||||
|
|
||||||
error: const items should never be #[no_mangle]
|
error: const items should never be #[no_mangle]
|
||||||
--> $DIR/suggestions.rs:22:18
|
--> $DIR/suggestions.rs:22:18
|
||||||
|
|
|
|
||||||
@ -97,23 +115,5 @@ LL | #[no_mangle] pub(crate) fn crossfield<T>() {}
|
|||||||
| |
|
| |
|
||||||
| help: remove this attribute
|
| help: remove this attribute
|
||||||
|
|
||||||
warning: denote infinite loops with `loop { ... }`
|
|
||||||
--> $DIR/suggestions.rs:46:5
|
|
||||||
|
|
|
||||||
LL | while true {
|
|
||||||
| ^^^^^^^^^^ help: use `loop`
|
|
||||||
|
|
|
||||||
= note: #[warn(while_true)] on by default
|
|
||||||
|
|
||||||
warning: the `warp_factor:` in this pattern is redundant
|
|
||||||
--> $DIR/suggestions.rs:61:23
|
|
||||||
|
|
|
||||||
LL | Equinox { warp_factor: warp_factor } => {}
|
|
||||||
| ------------^^^^^^^^^^^^
|
|
||||||
| |
|
|
||||||
| help: remove this
|
|
||||||
|
|
|
||||||
= note: #[warn(non_shorthand_field_patterns)] on by default
|
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
error: aborting due to 3 previous errors
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user