Skip to content

Commit da9aa2d

Browse files
committed
Adjust name of never typed const test
1 parent 39be0b5 commit da9aa2d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/test/mir-opt/retain-never-const.rs renamed to src/test/mir-opt/remove-never-const.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
// Regression test for #66975 - ensure that we don't keep unevaluated
2-
// `!`-typed constants until codegen.
1+
// This was originally a regression test for #66975 - ensure that we do not generate never typed
2+
// consts in codegen. We also have tests for this that catches the error, see
3+
// src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs.
34

45
// Force generation of optimized mir for functions that do not reach codegen.
56
// compile-flags: --emit mir,link
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// MIR for `no_codegen` after PreCodegen
22

33
fn no_codegen() -> () {
4-
let mut _0: (); // return place in scope 0 at $DIR/retain-never-const.rs:18:20: 18:20
4+
let mut _0: (); // return place in scope 0 at $DIR/remove-never-const.rs:19:20: 19:20
55
scope 1 {
66
}
77

88
bb0: {
9-
unreachable; // bb0[0]: scope 0 at $DIR/retain-never-const.rs:19:13: 19:33
9+
unreachable; // bb0[0]: scope 0 at $DIR/remove-never-const.rs:20:13: 20:33
1010
}
1111
}

0 commit comments

Comments
 (0)