Skip to content

Commit d4d2317

Browse files
committed
Update test cases for changes to error messages
1 parent bd7a802 commit d4d2317

File tree

5 files changed

+3
-12
lines changed

5 files changed

+3
-12
lines changed

src/test/ui/issues/issue-23302-1.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | A = X::A as isize,
55
| ^^^^^^^^^^^^^
66
|
77
= note: ...which again requires processing `X::A::{{constant}}#0`, completing the cycle
8-
note: cycle used when const-evaluating `X::A::{{constant}}#0`
8+
note: cycle used when processing `X::A::{{constant}}#0`
99
--> $DIR/issue-23302-1.rs:4:9
1010
|
1111
LL | A = X::A as isize,

src/test/ui/issues/issue-23302-2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | A = Y::B as isize,
55
| ^^^^^^^^^^^^^
66
|
77
= note: ...which again requires processing `Y::A::{{constant}}#0`, completing the cycle
8-
note: cycle used when const-evaluating `Y::A::{{constant}}#0`
8+
note: cycle used when processing `Y::A::{{constant}}#0`
99
--> $DIR/issue-23302-2.rs:4:9
1010
|
1111
LL | A = Y::B as isize,

src/test/ui/issues/issue-36163.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ note: ...which requires processing `A`...
1010
LL | const A: isize = Foo::B as isize;
1111
| ^^^^^^^^^^^^^^^
1212
= note: ...which again requires processing `Foo::B::{{constant}}#0`, completing the cycle
13-
note: cycle used when const-evaluating `Foo::B::{{constant}}#0`
13+
note: cycle used when processing `Foo::B::{{constant}}#0`
1414
--> $DIR/issue-36163.rs:4:9
1515
|
1616
LL | B = A,

src/test/ui/issues/issue-51714.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ fn main() {
1010

1111
[(); return while let Some(n) = Some(0) {}];
1212
//~^ ERROR return statement outside of function body
13-
//~^^ WARN irrefutable while-let pattern
1413
}

src/test/ui/issues/issue-51714.stderr

-8
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@ error[E0572]: return statement outside of function body
2222
LL | [(); return while let Some(n) = Some(0) {}];
2323
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2424

25-
warning: irrefutable while-let pattern
26-
--> $DIR/issue-51714.rs:11:17
27-
|
28-
LL | [(); return while let Some(n) = Some(0) {}];
29-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30-
|
31-
= note: #[warn(irrefutable_let_patterns)] on by default
32-
3325
error: aborting due to 4 previous errors
3426

3527
For more information about this error, try `rustc --explain E0572`.

0 commit comments

Comments
 (0)