Skip to content

Commit 6214ef8

Browse files
committed
Bless some tests
1 parent 2f8fa01 commit 6214ef8

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

src/test/ui/lint/issue-47390-unused-variable-in-struct-pattern.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
1212
= note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
1313

1414
warning: unused variable: `mut_unused_var`
15-
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:33:9
15+
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:33:13
1616
|
1717
LL | let mut mut_unused_var = 1;
18-
| ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mut_unused_var`
18+
| ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mut_unused_var`
1919

2020
warning: unused variable: `var`
21-
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:37:10
21+
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:37:14
2222
|
2323
LL | let (mut var, unused_var) = (1, 2);
24-
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var`
24+
| ^^^ help: if this is intentional, prefix it with an underscore: `_var`
2525

2626
warning: unused variable: `unused_var`
2727
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:37:19
@@ -36,10 +36,10 @@ LL | if let SoulHistory { corridors_of_light,
3636
| ^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `corridors_of_light: _`
3737

3838
warning: variable `hours_are_suns` is assigned to, but never used
39-
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:46:26
39+
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:46:30
4040
|
4141
LL | mut hours_are_suns,
42-
| ^^^^^^^^^^^^^^^^^^
42+
| ^^^^^^^^^^^^^^
4343
|
4444
= note: consider using `_hours_are_suns` instead
4545

src/test/ui/liveness/liveness-consts.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
warning: variable `a` is assigned to, but never used
2-
--> $DIR/liveness-consts.rs:7:9
2+
--> $DIR/liveness-consts.rs:7:13
33
|
44
LL | let mut a = 0;
5-
| ^^^^^
5+
| ^
66
|
77
note: the lint level is defined here
88
--> $DIR/liveness-consts.rs:2:9

src/test/ui/liveness/liveness-dead.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error: value assigned to `x` is never read
2-
--> $DIR/liveness-dead.rs:9:9
2+
--> $DIR/liveness-dead.rs:9:13
33
|
44
LL | let mut x: isize = 3;
5-
| ^^^^^
5+
| ^
66
|
77
note: the lint level is defined here
88
--> $DIR/liveness-dead.rs:2:9
@@ -20,10 +20,10 @@ LL | x = 4;
2020
= help: maybe it is overwritten before being read?
2121

2222
error: value passed to `x` is never read
23-
--> $DIR/liveness-dead.rs:20:7
23+
--> $DIR/liveness-dead.rs:20:11
2424
|
2525
LL | fn f4(mut x: i32) {
26-
| ^^^^^
26+
| ^
2727
|
2828
= help: maybe it is overwritten before being read?
2929

src/test/ui/liveness/liveness-unused.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ LL | let x = 3;
4444
| ^ help: if this is intentional, prefix it with an underscore: `_x`
4545

4646
error: variable `x` is assigned to, but never used
47-
--> $DIR/liveness-unused.rs:30:9
47+
--> $DIR/liveness-unused.rs:30:13
4848
|
4949
LL | let mut x = 3;
50-
| ^^^^^
50+
| ^
5151
|
5252
= note: consider using `_x` instead
5353

@@ -65,10 +65,10 @@ LL | #![deny(unused_assignments)]
6565
= help: maybe it is overwritten before being read?
6666

6767
error: variable `z` is assigned to, but never used
68-
--> $DIR/liveness-unused.rs:37:9
68+
--> $DIR/liveness-unused.rs:37:13
6969
|
7070
LL | let mut z = 3;
71-
| ^^^^^
71+
| ^
7272
|
7373
= note: consider using `_z` instead
7474

0 commit comments

Comments
 (0)