Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Mar 3, 2020
1 parent 321d90e commit 45a30cd
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 91 deletions.
37 changes: 0 additions & 37 deletions src/test/debuginfo/no-debug-attribute.rs

This file was deleted.

5 changes: 0 additions & 5 deletions src/test/ui/feature-gates/feature-gate-no-debug-2.rs

This file was deleted.

14 changes: 0 additions & 14 deletions src/test/ui/feature-gates/feature-gate-no-debug-2.stderr

This file was deleted.

4 changes: 0 additions & 4 deletions src/test/ui/feature-gates/feature-gate-no-debug.rs

This file was deleted.

12 changes: 0 additions & 12 deletions src/test/ui/feature-gates/feature-gate-no-debug.stderr

This file was deleted.

30 changes: 11 additions & 19 deletions src/test/ui/lint/suggestions.stderr
@@ -1,13 +1,13 @@
warning: denote infinite loops with `loop { ... }`
--> $DIR/suggestions.rs:46:5
--> $DIR/suggestions.rs:42:5
|
LL | while true {
| ^^^^^^^^^^ help: use `loop`
|
= note: `#[warn(while_true)]` on by default

warning: unnecessary parentheses around assigned value
--> $DIR/suggestions.rs:49:31
--> $DIR/suggestions.rs:45:31
|
LL | let mut registry_no = (format!("NX-{}", 74205));
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
Expand All @@ -18,16 +18,8 @@ note: the lint level is defined here
LL | #![warn(unused_mut, unused_parens)] // UI tests pass `-A unused`—see Issue #43896
| ^^^^^^^^^^^^^

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
--> $DIR/suggestions.rs:42:1
|
LL | #[no_debug] // should suggest removal of deprecated attribute
| ^^^^^^^^^^^ help: remove this attribute
|
= note: `#[warn(deprecated)]` on by default

warning: variable does not need to be mutable
--> $DIR/suggestions.rs:49:13
--> $DIR/suggestions.rs:45:13
|
LL | let mut registry_no = (format!("NX-{}", 74205));
| ----^^^^^^^^^^^
Expand All @@ -41,7 +33,7 @@ LL | #![warn(unused_mut, unused_parens)] // UI tests pass `-A unused`—see Issu
| ^^^^^^^^^^

warning: variable does not need to be mutable
--> $DIR/suggestions.rs:55:13
--> $DIR/suggestions.rs:51:13
|
LL | let mut
| _____________^
Expand All @@ -53,7 +45,7 @@ LL | || b = 1;
| help: remove this `mut`

error: const items should never be `#[no_mangle]`
--> $DIR/suggestions.rs:6:14
--> $DIR/suggestions.rs:5:14
|
LL | #[no_mangle] const DISCOVERY: usize = 1;
| -----^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -63,7 +55,7 @@ LL | #[no_mangle] const DISCOVERY: usize = 1;
= note: `#[deny(no_mangle_const_items)]` on by default

warning: functions generic over types or consts must be mangled
--> $DIR/suggestions.rs:12:1
--> $DIR/suggestions.rs:11:1
|
LL | #[no_mangle]
| ------------ help: remove this attribute
Expand All @@ -74,39 +66,39 @@ LL | pub fn defiant<T>(_t: T) {}
= note: `#[warn(no_mangle_generic_items)]` on by default

warning: the `warp_factor:` in this pattern is redundant
--> $DIR/suggestions.rs:61:23
--> $DIR/suggestions.rs:57:23
|
LL | Equinox { warp_factor: warp_factor } => {}
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `warp_factor`
|
= note: `#[warn(non_shorthand_field_patterns)]` on by default

error: const items should never be `#[no_mangle]`
--> $DIR/suggestions.rs:22:18
--> $DIR/suggestions.rs:21:18
|
LL | #[no_mangle] pub const DAUNTLESS: bool = true;
| ---------^^^^^^^^^^^^^^^^^^^^^^^^
| |
| help: try a static value: `pub static`

warning: functions generic over types or consts must be mangled
--> $DIR/suggestions.rs:25:18
--> $DIR/suggestions.rs:24:18
|
LL | #[no_mangle] pub fn val_jean<T>() {}
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^
| |
| help: remove this attribute

error: const items should never be `#[no_mangle]`
--> $DIR/suggestions.rs:30:18
--> $DIR/suggestions.rs:29:18
|
LL | #[no_mangle] pub(crate) const VETAR: bool = true;
| ----------------^^^^^^^^^^^^^^^^^^^^
| |
| help: try a static value: `pub static`

warning: functions generic over types or consts must be mangled
--> $DIR/suggestions.rs:33:18
--> $DIR/suggestions.rs:32:18
|
LL | #[no_mangle] pub(crate) fn crossfield<T>() {}
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 45a30cd

Please sign in to comment.