summaryrefslogtreecommitdiffstats
path: root/tests/ui/layout/debug.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/layout/debug.stderr')
-rw-r--r--tests/ui/layout/debug.stderr220
1 files changed, 214 insertions, 6 deletions
diff --git a/tests/ui/layout/debug.stderr b/tests/ui/layout/debug.stderr
index c5e1c41d1..b9fa1b299 100644
--- a/tests/ui/layout/debug.stderr
+++ b/tests/ui/layout/debug.stderr
@@ -81,7 +81,7 @@ error: layout_of(E) = Layout {
],
},
}
- --> $DIR/debug.rs:6:1
+ --> $DIR/debug.rs:7:1
|
LL | enum E { Foo, Bar(!, i32, i32) }
| ^^^^^^
@@ -125,7 +125,7 @@ error: layout_of(S) = Layout {
index: 0,
},
}
- --> $DIR/debug.rs:9:1
+ --> $DIR/debug.rs:10:1
|
LL | struct S { f1: i32, f2: (), f3: i32 }
| ^^^^^^^^
@@ -147,7 +147,7 @@ error: layout_of(U) = Layout {
index: 0,
},
}
- --> $DIR/debug.rs:12:1
+ --> $DIR/debug.rs:13:1
|
LL | union U { f1: (i32, i32), f3: i32 }
| ^^^^^^^
@@ -276,7 +276,7 @@ error: layout_of(std::result::Result<i32, i32>) = Layout {
],
},
}
- --> $DIR/debug.rs:15:1
+ --> $DIR/debug.rs:16:1
|
LL | type Test = Result<i32, i32>;
| ^^^^^^^^^
@@ -302,10 +302,218 @@ error: layout_of(i32) = Layout {
index: 0,
},
}
- --> $DIR/debug.rs:18:1
+ --> $DIR/debug.rs:19:1
|
LL | type T = impl std::fmt::Debug;
| ^^^^^^
-error: aborting due to 5 previous errors
+error: layout_of(V) = Layout {
+ size: Size(2 bytes),
+ align: AbiAndPrefAlign {
+ abi: Align(2 bytes),
+ pref: $PREF_ALIGN,
+ },
+ abi: Aggregate {
+ sized: true,
+ },
+ fields: Union(
+ 2,
+ ),
+ largest_niche: None,
+ variants: Single {
+ index: 0,
+ },
+ }
+ --> $DIR/debug.rs:22:1
+ |
+LL | pub union V {
+ | ^^^^^^^^^^^
+
+error: layout_of(W) = Layout {
+ size: Size(2 bytes),
+ align: AbiAndPrefAlign {
+ abi: Align(2 bytes),
+ pref: $PREF_ALIGN,
+ },
+ abi: Aggregate {
+ sized: true,
+ },
+ fields: Union(
+ 2,
+ ),
+ largest_niche: None,
+ variants: Single {
+ index: 0,
+ },
+ }
+ --> $DIR/debug.rs:28:1
+ |
+LL | pub union W {
+ | ^^^^^^^^^^^
+
+error: layout_of(Y) = Layout {
+ size: Size(0 bytes),
+ align: AbiAndPrefAlign {
+ abi: Align(2 bytes),
+ pref: $PREF_ALIGN,
+ },
+ abi: Aggregate {
+ sized: true,
+ },
+ fields: Union(
+ 2,
+ ),
+ largest_niche: None,
+ variants: Single {
+ index: 0,
+ },
+ }
+ --> $DIR/debug.rs:34:1
+ |
+LL | pub union Y {
+ | ^^^^^^^^^^^
+
+error: layout_of(P1) = Layout {
+ size: Size(4 bytes),
+ align: AbiAndPrefAlign {
+ abi: Align(1 bytes),
+ pref: $PREF_ALIGN,
+ },
+ abi: Aggregate {
+ sized: true,
+ },
+ fields: Union(
+ 1,
+ ),
+ largest_niche: None,
+ variants: Single {
+ index: 0,
+ },
+ }
+ --> $DIR/debug.rs:41:1
+ |
+LL | union P1 { x: u32 }
+ | ^^^^^^^^
+
+error: layout_of(P2) = Layout {
+ size: Size(8 bytes),
+ align: AbiAndPrefAlign {
+ abi: Align(1 bytes),
+ pref: $PREF_ALIGN,
+ },
+ abi: Aggregate {
+ sized: true,
+ },
+ fields: Union(
+ 1,
+ ),
+ largest_niche: None,
+ variants: Single {
+ index: 0,
+ },
+ }
+ --> $DIR/debug.rs:45:1
+ |
+LL | union P2 { x: (u32, u32) }
+ | ^^^^^^^^
+
+error: layout_of(P3) = Layout {
+ size: Size(16 bytes),
+ align: AbiAndPrefAlign {
+ abi: Align(1 bytes),
+ pref: $PREF_ALIGN,
+ },
+ abi: Aggregate {
+ sized: true,
+ },
+ fields: Union(
+ 1,
+ ),
+ largest_niche: None,
+ variants: Single {
+ index: 0,
+ },
+ }
+ --> $DIR/debug.rs:53:1
+ |
+LL | union P3 { x: F32x4 }
+ | ^^^^^^^^
+
+error: layout_of(P4) = Layout {
+ size: Size(12 bytes),
+ align: AbiAndPrefAlign {
+ abi: Align(1 bytes),
+ pref: $PREF_ALIGN,
+ },
+ abi: Aggregate {
+ sized: true,
+ },
+ fields: Union(
+ 1,
+ ),
+ largest_niche: None,
+ variants: Single {
+ index: 0,
+ },
+ }
+ --> $DIR/debug.rs:57:1
+ |
+LL | union P4 { x: E }
+ | ^^^^^^^^
+
+error: layout_of(P5) = Layout {
+ size: Size(1 bytes),
+ align: AbiAndPrefAlign {
+ abi: Align(1 bytes),
+ pref: $PREF_ALIGN,
+ },
+ abi: Scalar(
+ Union {
+ value: Int(
+ I8,
+ false,
+ ),
+ },
+ ),
+ fields: Union(
+ 2,
+ ),
+ largest_niche: None,
+ variants: Single {
+ index: 0,
+ },
+ }
+ --> $DIR/debug.rs:61:1
+ |
+LL | union P5 { zst: [u16; 0], byte: u8 }
+ | ^^^^^^^^
+
+error: layout_of(std::mem::MaybeUninit<u8>) = Layout {
+ size: Size(1 bytes),
+ align: AbiAndPrefAlign {
+ abi: Align(1 bytes),
+ pref: $PREF_ALIGN,
+ },
+ abi: Scalar(
+ Union {
+ value: Int(
+ I8,
+ false,
+ ),
+ },
+ ),
+ fields: Union(
+ 2,
+ ),
+ largest_niche: None,
+ variants: Single {
+ index: 0,
+ },
+ }
+ --> $DIR/debug.rs:64:1
+ |
+LL | type X = std::mem::MaybeUninit<u8>;
+ | ^^^^^^
+
+error: aborting due to 14 previous errors