Skip to content

Commit 898cbf2

Browse files
committed
update_tests
1 parent 602f206 commit 898cbf2

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/test/mir-opt/while-storage/rustc.while_loop.PreCodegen.after.mir

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn while_loop(_1: bool) -> () {
5757

5858
bb5: {
5959
StorageDead(_4); // bb5[0]: scope 0 at $DIR/while-storage.rs:14:5: 14:6
60-
StorageDead(_2); // bb5[1]: scope 0 at $DIR/while-storage.rs:10:21: 10:22
60+
StorageDead(_2); // bb5[1]: scope 0 at $DIR/while-storage.rs:14:5: 14:6
6161
goto -> bb0; // bb5[2]: scope 0 at $DIR/while-storage.rs:10:5: 14:6
6262
}
6363

@@ -74,7 +74,7 @@ fn while_loop(_1: bool) -> () {
7474
}
7575

7676
bb7: {
77-
StorageDead(_2); // bb7[0]: scope 0 at $DIR/while-storage.rs:10:21: 10:22
77+
StorageDead(_2); // bb7[0]: scope 0 at $DIR/while-storage.rs:14:5: 14:6
7878
return; // bb7[1]: scope 0 at $DIR/while-storage.rs:15:2: 15:2
7979
}
8080
}

src/test/ui/block-result/block-must-not-have-result-while.stderr

+8-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ LL | while true {
99
error[E0308]: mismatched types
1010
--> $DIR/block-must-not-have-result-while.rs:3:9
1111
|
12-
LL | true
13-
| ^^^^ expected `()`, found `bool`
12+
LL | / while true {
13+
LL | | true
14+
| | ^^^^ expected `()`, found `bool`
15+
LL | |
16+
LL | | }
17+
| | -- help: consider using a semicolon here
18+
| |_____|
19+
| expected this to be `()`
1420

1521
error: aborting due to previous error; 1 warning emitted
1622

0 commit comments

Comments
 (0)