Skip to content

Commit 4d6f480

Browse files
committed
Modify test to check everything is not sent to dead
If the code skips visit_nested_body without additional care, some parts are marked as dead. I added a new line on the test to confirm the fix doesn't cause such problem. Signed-off-by: Shunpoco <[email protected]>
1 parent 58b98ba commit 4d6f480

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
// Issue-125323
1+
// The test confirms ICE-125323 is fixed.
2+
//
3+
// This warning makes sure the fix doesn't throw everything with errors to dead.
4+
#![warn(unused)]
5+
fn should_not_be_dead() {}
6+
27
fn main() {
38
for _ in 0..0 {
49
[(); loop {}]; //~ ERROR constant evaluation is taking a long time
510
}
11+
12+
should_not_be_dead();
613
}

0 commit comments

Comments
 (0)