Skip to content

Commit ca17ce4

Browse files
authored
Rollup merge of rust-lang#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``
2 parents 1a4d3c9 + db86056 commit ca17ce4

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

tests/ui/consts/const-err4.rs renamed to tests/ui/consts/const-err-enum-discriminant.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// stderr-per-bitwidth
21
#[derive(Copy, Clone)]
32
union Foo {
43
a: isize,

tests/ui/consts/const-err4.32bit.stderr renamed to tests/ui/consts/const-err-enum-discriminant.stderr

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

tests/ui/consts/const-err4.64bit.stderr

-9
This file was deleted.

0 commit comments

Comments
 (0)