Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 091433d

Browse files
committed
Rename stderr->64bit.stderr where needed.
1 parent c3ec0ad commit 091433d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+192
-157
lines changed

src/test/ui/const-generics/min_const_generics/invalid-patterns.stderr renamed to src/test/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
error[E0308]: mismatched types
2-
--> $DIR/invalid-patterns.rs:28:21
2+
--> $DIR/invalid-patterns.rs:29:21
33
|
44
LL | get_flag::<false, 0xFF>();
55
| ^^^^ expected `char`, found `u8`
66

77
error[E0308]: mismatched types
8-
--> $DIR/invalid-patterns.rs:30:14
8+
--> $DIR/invalid-patterns.rs:31:14
99
|
1010
LL | get_flag::<7, 'c'>();
1111
| ^ expected `bool`, found integer
1212

1313
error[E0308]: mismatched types
14-
--> $DIR/invalid-patterns.rs:32:14
14+
--> $DIR/invalid-patterns.rs:33:14
1515
|
1616
LL | get_flag::<42, 0x5ad>();
1717
| ^^ expected `bool`, found integer
1818

1919
error[E0308]: mismatched types
20-
--> $DIR/invalid-patterns.rs:32:18
20+
--> $DIR/invalid-patterns.rs:33:18
2121
|
2222
LL | get_flag::<42, 0x5ad>();
2323
| ^^^^^ expected `char`, found `u8`
2424

2525
error[E0080]: it is undefined behavior to use this value
26-
--> $DIR/invalid-patterns.rs:37:21
26+
--> $DIR/invalid-patterns.rs:38:21
2727
|
2828
LL | get_flag::<false, { unsafe { char_raw.character } }>();
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered uninitialized bytes, but expected a valid unicode scalar value (in `0..=0x10FFFF` but not in `0xD800..=0xDFFF`)
@@ -34,7 +34,7 @@ LL | get_flag::<false, { unsafe { char_raw.character } }>();
3434
}
3535

3636
error[E0080]: it is undefined behavior to use this value
37-
--> $DIR/invalid-patterns.rs:39:14
37+
--> $DIR/invalid-patterns.rs:40:14
3838
|
3939
LL | get_flag::<{ unsafe { bool_raw.boolean } }, 'z'>();
4040
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered 0x42, but expected a boolean
@@ -45,7 +45,7 @@ LL | get_flag::<{ unsafe { bool_raw.boolean } }, 'z'>();
4545
}
4646

4747
error[E0080]: it is undefined behavior to use this value
48-
--> $DIR/invalid-patterns.rs:41:14
48+
--> $DIR/invalid-patterns.rs:42:14
4949
|
5050
LL | get_flag::<{ unsafe { bool_raw.boolean } }, { unsafe { char_raw.character } }>();
5151
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered 0x42, but expected a boolean
@@ -56,7 +56,7 @@ LL | get_flag::<{ unsafe { bool_raw.boolean } }, { unsafe { char_raw.character
5656
}
5757

5858
error[E0080]: it is undefined behavior to use this value
59-
--> $DIR/invalid-patterns.rs:41:47
59+
--> $DIR/invalid-patterns.rs:42:47
6060
|
6161
LL | get_flag::<{ unsafe { bool_raw.boolean } }, { unsafe { char_raw.character } }>();
6262
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered uninitialized bytes, but expected a valid unicode scalar value (in `0..=0x10FFFF` but not in `0xD800..=0xDFFF`)

src/test/ui/const-generics/min_const_generics/invalid-patterns.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// stderr-per-bitwidth
12
use std::mem::transmute;
23

34
fn get_flag<const FlagSet: bool, const ShortName: char>() -> Option<char> {

src/test/ui/consts/const-err4.stderr renamed to src/test/ui/consts/const-err4.64bit.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0080]: it is undefined behavior to use this value
2-
--> $DIR/const-err4.rs:8:11
2+
--> $DIR/const-err4.rs:9:11
33
|
44
LL | Boo = [unsafe { Foo { b: () }.a }; 4][3],
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered uninitialized bytes, but expected initialized plain (non-pointer) bytes

src/test/ui/consts/const-err4.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// stderr-per-bitwidth
12
#[derive(Copy, Clone)]
23
union Foo {
34
a: isize,

src/test/ui/consts/const-eval/const-pointer-values-in-various-types.stderr renamed to src/test/ui/consts/const-eval/const-pointer-values-in-various-types.64bit.stderr

Lines changed: 29 additions & 29 deletions
Large diffs are not rendered by default.

src/test/ui/consts/const-eval/const-pointer-values-in-various-types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// only-x86_64
2+
// stderr-per-bitwidth
23

34
#[repr(C)]
45
union Nonsense {

src/test/ui/consts/const-eval/heap/alloc_intrinsic_uninit.stderr renamed to src/test/ui/consts/const-eval/heap/alloc_intrinsic_uninit.64bit.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0080]: it is undefined behavior to use this value
2-
--> $DIR/alloc_intrinsic_uninit.rs:8:1
2+
--> $DIR/alloc_intrinsic_uninit.rs:9:1
33
|
44
LL | const BAR: &i32 = unsafe { &*(intrinsics::const_allocate(4, 4) as *mut i32) };
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered uninitialized bytes at .<deref>, but expected initialized plain (non-pointer) bytes

src/test/ui/consts/const-eval/heap/alloc_intrinsic_uninit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// stderr-per-bitwidth
12
// compile-test
23
#![feature(core_intrinsics)]
34
#![feature(const_heap)]

src/test/ui/consts/const-eval/ref_to_int_match.stderr renamed to src/test/ui/consts/const-eval/ref_to_int_match.64bit.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0080]: it is undefined behavior to use this value
2-
--> $DIR/ref_to_int_match.rs:25:1
2+
--> $DIR/ref_to_int_match.rs:26:1
33
|
44
LL | const BAR: Int = unsafe { Foo { r: &42 }.f };
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered pointer to alloc2, but expected initialized plain (non-pointer) bytes
@@ -10,13 +10,13 @@ LL | const BAR: Int = unsafe { Foo { r: &42 }.f };
1010
}
1111

1212
error: could not evaluate constant pattern
13-
--> $DIR/ref_to_int_match.rs:7:14
13+
--> $DIR/ref_to_int_match.rs:8:14
1414
|
1515
LL | 10..=BAR => {},
1616
| ^^^
1717

1818
error: could not evaluate constant pattern
19-
--> $DIR/ref_to_int_match.rs:7:14
19+
--> $DIR/ref_to_int_match.rs:8:14
2020
|
2121
LL | 10..=BAR => {},
2222
| ^^^

src/test/ui/consts/const-eval/ref_to_int_match.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// stderr-per-bitwidth
12
#![feature(const_fn_union)]
23

34
fn main() {

0 commit comments

Comments
 (0)