Skip to content

Commit 05bfc77

Browse files
Rollup merge of #157103 - zetanumbers:update_failing_parallel_tests_1, r=nnethercote
Add reproducibly failing tests for parallel frontend Some tests keep fail with `--parallel-frontend-threads=n`. This PR marks them for tracking and to filter those out for regular tests of the parallel frontend. There are two new similar categories for test failures: `unstable liveness diagnostics` and `pattern matching error message mismatch`. Both of them appear to be just printed diagnostic inconsistencies.
2 parents b821fd2 + f582193 commit 05bfc77

15 files changed

Lines changed: 196 additions & 190 deletions

tests/ui/closures/2229_closure_analysis/diagnostics/liveness.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ edition:2021
2-
32
//@ check-pass
3+
//@ ignore-parallel-frontend unstable liveness diagnostics
44
#![allow(unreachable_code)]
55
#![warn(unused)]
66
#![allow(dead_code)]

tests/ui/lint/unused/unused-assign-148960.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ check-fail
2+
//@ ignore-parallel-frontend unstable liveness diagnostics
23
#![deny(unused)]
34
#![allow(dead_code)]
45

tests/ui/lint/unused/unused-assign-148960.stderr

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
error: value assigned to `value` is never read
2-
--> $DIR/unused-assign-148960.rs:6:21
2+
--> $DIR/unused-assign-148960.rs:7:21
33
|
44
LL | let mut value = b"0".to_vec();
55
| ^^^^^^^^^^^^^ this value is reassigned later and never used
66
LL | value = b"1".to_vec();
77
| ----- `value` is overwritten here before the previous value is read
88
|
99
note: the lint level is defined here
10-
--> $DIR/unused-assign-148960.rs:2:9
10+
--> $DIR/unused-assign-148960.rs:3:9
1111
|
1212
LL | #![deny(unused)]
1313
| ^^^^^^
1414
= note: `#[deny(unused_assignments)]` implied by `#[deny(unused)]`
1515

1616
error: value assigned to `x` is never read
17-
--> $DIR/unused-assign-148960.rs:12:17
17+
--> $DIR/unused-assign-148960.rs:13:17
1818
|
1919
LL | let mut x = 1;
2020
| ^ this value is reassigned later and never used
2121
LL | x = 2;
2222
| ----- `x` is overwritten here before the previous value is read
2323

2424
error: value assigned to `x` is never read
25-
--> $DIR/unused-assign-148960.rs:13:5
25+
--> $DIR/unused-assign-148960.rs:14:5
2626
|
2727
LL | x = 2;
2828
| ^^^^^ this value is reassigned later and never used
2929
LL | x = 3;
3030
| ----- `x` is overwritten here before the previous value is read
3131

3232
error: value assigned to `p` is never read
33-
--> $DIR/unused-assign-148960.rs:24:17
33+
--> $DIR/unused-assign-148960.rs:25:17
3434
|
3535
LL | let mut p = Point { x: 1, y: 1 };
3636
| ^^^^^^^^^^^^^^^^^^^^ this value is reassigned later and never used
3737
LL | p = Point { x: 2, y: 2 };
3838
| ------------------------ `p` is overwritten here before the previous value is read
3939

4040
error: variable `foo` is assigned to, but never used
41-
--> $DIR/unused-assign-148960.rs:38:9
41+
--> $DIR/unused-assign-148960.rs:39:9
4242
|
4343
LL | let mut foo = Foo;
4444
| ^^^^^^^
@@ -52,7 +52,7 @@ LL + let Foo = Foo;
5252
|
5353

5454
error: value assigned to `foo` is never read
55-
--> $DIR/unused-assign-148960.rs:39:5
55+
--> $DIR/unused-assign-148960.rs:40:5
5656
|
5757
LL | foo = Foo;
5858
| ^^^

tests/ui/liveness/liveness-consts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ check-pass
2+
//@ ignore-parallel-frontend unstable liveness diagnostics
23
#![warn(unused)]
34
#![allow(unreachable_code)]
45

tests/ui/liveness/liveness-consts.stderr

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
warning: unused variable: `e`
2-
--> $DIR/liveness-consts.rs:26:13
2+
--> $DIR/liveness-consts.rs:27:13
33
|
44
LL | let e = 1;
55
| ^ help: if this is intentional, prefix it with an underscore: `_e`
66
|
77
note: the lint level is defined here
8-
--> $DIR/liveness-consts.rs:2:9
8+
--> $DIR/liveness-consts.rs:3:9
99
|
1010
LL | #![warn(unused)]
1111
| ^^^^^^
1212
= note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
1313

1414
warning: unused variable: `s`
15-
--> $DIR/liveness-consts.rs:35:24
15+
--> $DIR/liveness-consts.rs:36:24
1616
|
1717
LL | pub fn f(x: [u8; { let s = 17; 100 }]) -> [u8; { let z = 18; 100 }] {
1818
| ^ help: if this is intentional, prefix it with an underscore: `_s`
1919

2020
warning: unused variable: `z`
21-
--> $DIR/liveness-consts.rs:35:55
21+
--> $DIR/liveness-consts.rs:36:55
2222
|
2323
LL | pub fn f(x: [u8; { let s = 17; 100 }]) -> [u8; { let z = 18; 100 }] {
2424
| ^ help: if this is intentional, prefix it with an underscore: `_z`
2525

2626
warning: variable `a` is assigned to, but never used
27-
--> $DIR/liveness-consts.rs:7:9
27+
--> $DIR/liveness-consts.rs:8:9
2828
|
2929
LL | let mut a = 0;
3030
| ^^^^^
3131
|
3232
= note: consider using `_a` instead
3333

3434
warning: value assigned to `a` is never read
35-
--> $DIR/liveness-consts.rs:11:9
35+
--> $DIR/liveness-consts.rs:12:9
3636
|
3737
LL | a += 1;
3838
| ^^^^^^
@@ -41,37 +41,37 @@ LL | a += 1;
4141
= note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]`
4242

4343
warning: value assigned to `b` is never read
44-
--> $DIR/liveness-consts.rs:18:17
44+
--> $DIR/liveness-consts.rs:19:17
4545
|
4646
LL | let mut b = 1;
4747
| ^ this value is reassigned later and never used
4848
LL | b += 1;
4949
| ------ `b` is overwritten here before the previous value is read
5050

5151
warning: value assigned to `b` is never read
52-
--> $DIR/liveness-consts.rs:19:5
52+
--> $DIR/liveness-consts.rs:20:5
5353
|
5454
LL | b += 1;
5555
| ^^^^^^ this value is reassigned later and never used
5656
LL | b = 42;
5757
| ------ `b` is overwritten here before the previous value is read
5858

5959
warning: unused variable: `z`
60-
--> $DIR/liveness-consts.rs:62:13
60+
--> $DIR/liveness-consts.rs:63:13
6161
|
6262
LL | let z = 42;
6363
| ^ help: if this is intentional, prefix it with an underscore: `_z`
6464

6565
warning: value assigned to `t` is never read
66-
--> $DIR/liveness-consts.rs:44:9
66+
--> $DIR/liveness-consts.rs:45:9
6767
|
6868
LL | t = t + t;
6969
| ^^^^^^^^^
7070
|
7171
= help: maybe it is overwritten before being read?
7272

7373
warning: unused variable: `w`
74-
--> $DIR/liveness-consts.rs:51:13
74+
--> $DIR/liveness-consts.rs:52:13
7575
|
7676
LL | let w = 10;
7777
| ^ help: if this is intentional, prefix it with an underscore: `_w`

tests/ui/liveness/liveness-dead.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ ignore-parallel-frontend unstable liveness diagnostics
12
#![allow(dead_code)]
23
#![deny(unused_assignments)]
34

tests/ui/liveness/liveness-dead.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
error: value assigned to `x` is never read
2-
--> $DIR/liveness-dead.rs:9:24
2+
--> $DIR/liveness-dead.rs:10:24
33
|
44
LL | let mut x: isize = 3;
55
| ^ this value is reassigned later and never used
66
LL | x = 4;
77
| ----- `x` is overwritten here before the previous value is read
88
|
99
note: the lint level is defined here
10-
--> $DIR/liveness-dead.rs:2:9
10+
--> $DIR/liveness-dead.rs:3:9
1111
|
1212
LL | #![deny(unused_assignments)]
1313
| ^^^^^^^^^^^^^^^^^^
1414

1515
error: value assigned to `x` is never read
16-
--> $DIR/liveness-dead.rs:17:5
16+
--> $DIR/liveness-dead.rs:18:5
1717
|
1818
LL | x = 4;
1919
| ^^^^^
2020
|
2121
= help: maybe it is overwritten before being read?
2222

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

3131
error: value assigned to `x` is never read
32-
--> $DIR/liveness-dead.rs:27:5
32+
--> $DIR/liveness-dead.rs:28:5
3333
|
3434
LL | x = 4;
3535
| ^^^^^

tests/ui/liveness/liveness-upvars.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ edition:2018
22
//@ check-pass
3+
//@ ignore-parallel-frontend unstable liveness diagnostics
34
#![feature(coroutines, stmt_expr_attributes)]
45
#![warn(unused)]
56
#![allow(unreachable_code)]

0 commit comments

Comments
 (0)