Rollup merge of #119852 - RalfJung:const-err4, r=compiler-errors

give const-err4 a more descriptive name

Also, doesn't look like this still needs to be per-bitwidth

r? ``@oli-obk``
This commit is contained in:
Matthias Krüger 2024-01-11 19:42:52 +01:00 committed by GitHub
commit ca17ce4558
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 11 deletions

View file

@ -1,4 +1,3 @@
// stderr-per-bitwidth
#[derive(Copy, Clone)]
union Foo {
a: isize,

View file

@ -1,5 +1,5 @@
error[E0080]: evaluation of constant value failed
--> $DIR/const-err4.rs:9:21
--> $DIR/const-err-enum-discriminant.rs:8:21
|
LL | Boo = [unsafe { Foo { b: () }.a }; 4][3],
| ^^^^^^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory

View file

@ -1,9 +0,0 @@
error[E0080]: evaluation of constant value failed
--> $DIR/const-err4.rs:9:21
|
LL | Boo = [unsafe { Foo { b: () }.a }; 4][3],
| ^^^^^^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0080`.