Skip to content

Commit 45a30cd

Browse files
committed
Update tests
1 parent 321d90e commit 45a30cd

File tree

6 files changed

+11
-91
lines changed

6 files changed

+11
-91
lines changed

src/test/debuginfo/no-debug-attribute.rs

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/test/ui/feature-gates/feature-gate-no-debug-2.rs

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/test/ui/feature-gates/feature-gate-no-debug-2.stderr

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/test/ui/feature-gates/feature-gate-no-debug.rs

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/test/ui/feature-gates/feature-gate-no-debug.stderr

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/test/ui/lint/suggestions.stderr

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
warning: denote infinite loops with `loop { ... }`
2-
--> $DIR/suggestions.rs:46:5
2+
--> $DIR/suggestions.rs:42:5
33
|
44
LL | while true {
55
| ^^^^^^^^^^ help: use `loop`
66
|
77
= note: `#[warn(while_true)]` on by default
88

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

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

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

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

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

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

8476
error: const items should never be `#[no_mangle]`
85-
--> $DIR/suggestions.rs:22:18
77+
--> $DIR/suggestions.rs:21:18
8678
|
8779
LL | #[no_mangle] pub const DAUNTLESS: bool = true;
8880
| ---------^^^^^^^^^^^^^^^^^^^^^^^^
8981
| |
9082
| help: try a static value: `pub static`
9183

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

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

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

0 commit comments

Comments
 (0)