Adjust name of never typed const test
This commit is contained in:
parent
39be0b5b6c
commit
da9aa2dd55
2 changed files with 5 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
// Regression test for #66975 - ensure that we don't keep unevaluated
|
||||
// `!`-typed constants until codegen.
|
||||
// This was originally a regression test for #66975 - ensure that we do not generate never typed
|
||||
// consts in codegen. We also have tests for this that catches the error, see
|
||||
// src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs.
|
||||
|
||||
// Force generation of optimized mir for functions that do not reach codegen.
|
||||
// compile-flags: --emit mir,link
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
// MIR for `no_codegen` after PreCodegen
|
||||
|
||||
fn no_codegen() -> () {
|
||||
let mut _0: (); // return place in scope 0 at $DIR/retain-never-const.rs:18:20: 18:20
|
||||
let mut _0: (); // return place in scope 0 at $DIR/remove-never-const.rs:19:20: 19:20
|
||||
scope 1 {
|
||||
}
|
||||
|
||||
bb0: {
|
||||
unreachable; // bb0[0]: scope 0 at $DIR/retain-never-const.rs:19:13: 19:33
|
||||
unreachable; // bb0[0]: scope 0 at $DIR/remove-never-const.rs:20:13: 20:33
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue