Skip to content

Commit c4b97f4

Browse files
committed
update tests after rebase
1 parent 5d84fca commit c4b97f4

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

compiler/rustc_mir_build/src/builder/matches/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2973,6 +2973,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
29732973
// These we may eventually support:
29742974
Constructor::Struct
29752975
| Constructor::Ref
2976+
| Constructor::DerefPattern(_)
29762977
| Constructor::Slice(_)
29772978
| Constructor::UnionField
29782979
| Constructor::Or

tests/ui/loop-match/const-continue-to-block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn const_continue_to_block() -> u8 {
1818
_ => 'b: {
1919
#[const_continue]
2020
break 'b 2;
21-
//~^ ERROR `#[const_continue]` must break to a labeled block in a `#[loop_match]`
21+
//~^ ERROR `#[const_continue]` must break to a labeled block that participates in a `#[loop_match]`
2222
}
2323
}
2424
}

tests/ui/loop-match/const-continue-to-block.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: `#[const_continue]` must break to a labeled block in a `#[loop_match]`
1+
error: `#[const_continue]` must break to a labeled block that participates in a `#[loop_match]`
22
--> $DIR/const-continue-to-block.rs:20:27
33
|
44
LL | break 'b 2;

tests/ui/loop-match/const-continue-to-loop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn const_continue_to_loop() -> u8 {
1919
_ => {
2020
#[const_continue]
2121
break 'a 2;
22-
//~^ ERROR `#[const_continue]` must break to a labeled block in a `#[loop_match]`
22+
//~^ ERROR `#[const_continue]` must break to a labeled block that participates in a `#[loop_match]`
2323
}
2424
}
2525
}

tests/ui/loop-match/const-continue-to-loop.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: `#[const_continue]` must break to a labeled block in a `#[loop_match]`
1+
error: `#[const_continue]` must break to a labeled block that participates in a `#[loop_match]`
22
--> $DIR/const-continue-to-loop.rs:21:27
33
|
44
LL | break 'a 2;

0 commit comments

Comments
 (0)