diff options
| author | Ralf Jung <post@ralfj.de> | 2024-01-11 14:57:12 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-01-11 14:57:12 +0100 |
| commit | db860566bc09bab45d7ef5ea3a70ab11c03b788d (patch) | |
| tree | 8a4a6a48bc50a3782dd00d7c1ef4768b9a14a092 | |
| parent | d73bd3fb3ba312f3e6b5af4d56d1161d37b71620 (diff) | |
| download | rust-db860566bc09bab45d7ef5ea3a70ab11c03b788d.tar.gz rust-db860566bc09bab45d7ef5ea3a70ab11c03b788d.zip | |
give const-err4 a more descriptive name
| -rw-r--r-- | tests/ui/consts/const-err-enum-discriminant.rs (renamed from tests/ui/consts/const-err4.rs) | 1 | ||||
| -rw-r--r-- | tests/ui/consts/const-err-enum-discriminant.stderr (renamed from tests/ui/consts/const-err4.32bit.stderr) | 2 | ||||
| -rw-r--r-- | tests/ui/consts/const-err4.64bit.stderr | 9 |
3 files changed, 1 insertions, 11 deletions
diff --git a/tests/ui/consts/const-err4.rs b/tests/ui/consts/const-err-enum-discriminant.rs index 107dc3f8234..ebb3e551ba8 100644 --- a/tests/ui/consts/const-err4.rs +++ b/tests/ui/consts/const-err-enum-discriminant.rs @@ -1,4 +1,3 @@ -// stderr-per-bitwidth #[derive(Copy, Clone)] union Foo { a: isize, diff --git a/tests/ui/consts/const-err4.32bit.stderr b/tests/ui/consts/const-err-enum-discriminant.stderr index 582a848ca60..7cf34595dc9 100644 --- a/tests/ui/consts/const-err4.32bit.stderr +++ b/tests/ui/consts/const-err-enum-discriminant.stderr @@ -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 diff --git a/tests/ui/consts/const-err4.64bit.stderr b/tests/ui/consts/const-err4.64bit.stderr deleted file mode 100644 index 582a848ca60..00000000000 --- a/tests/ui/consts/const-err4.64bit.stderr +++ /dev/null @@ -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`. |
