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.stderr122
1 files changed, 90 insertions, 32 deletions
diff --git a/tests/ui/layout/debug.stderr b/tests/ui/layout/debug.stderr
index b9fa1b299..5162a771b 100644
--- a/tests/ui/layout/debug.stderr
+++ b/tests/ui/layout/debug.stderr
@@ -2,7 +2,7 @@ error: layout_of(E) = Layout {
size: Size(12 bytes),
align: AbiAndPrefAlign {
abi: Align(4 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: Aggregate {
sized: true,
@@ -40,7 +40,7 @@ error: layout_of(E) = Layout {
size: Size(4 bytes),
align: AbiAndPrefAlign {
abi: Align(1 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: Aggregate {
sized: true,
@@ -53,12 +53,14 @@ error: layout_of(E) = Layout {
variants: Single {
index: 0,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(1 bytes),
},
Layout {
size: Size(12 bytes),
align: AbiAndPrefAlign {
abi: Align(4 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: Uninhabited,
fields: Arbitrary {
@@ -77,9 +79,13 @@ error: layout_of(E) = Layout {
variants: Single {
index: 1,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(4 bytes),
},
],
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(4 bytes),
}
--> $DIR/debug.rs:7:1
|
@@ -90,7 +96,7 @@ error: layout_of(S) = Layout {
size: Size(8 bytes),
align: AbiAndPrefAlign {
abi: Align(4 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: ScalarPair(
Initialized {
@@ -111,19 +117,21 @@ error: layout_of(S) = Layout {
fields: Arbitrary {
offsets: [
Size(0 bytes),
- Size(0 bytes),
+ Size(8 bytes),
Size(4 bytes),
],
memory_index: [
- 1,
0,
2,
+ 1,
],
},
largest_niche: None,
variants: Single {
index: 0,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(4 bytes),
}
--> $DIR/debug.rs:10:1
|
@@ -134,7 +142,7 @@ error: layout_of(U) = Layout {
size: Size(8 bytes),
align: AbiAndPrefAlign {
abi: Align(4 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: Aggregate {
sized: true,
@@ -146,17 +154,19 @@ error: layout_of(U) = Layout {
variants: Single {
index: 0,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(4 bytes),
}
--> $DIR/debug.rs:13:1
|
LL | union U { f1: (i32, i32), f3: i32 }
| ^^^^^^^
-error: layout_of(std::result::Result<i32, i32>) = Layout {
+error: layout_of(Result<i32, i32>) = Layout {
size: Size(8 bytes),
align: AbiAndPrefAlign {
abi: Align(4 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: ScalarPair(
Initialized {
@@ -207,7 +217,7 @@ error: layout_of(std::result::Result<i32, i32>) = Layout {
size: Size(8 bytes),
align: AbiAndPrefAlign {
abi: Align(4 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: ScalarPair(
Initialized {
@@ -237,12 +247,14 @@ error: layout_of(std::result::Result<i32, i32>) = Layout {
variants: Single {
index: 0,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(4 bytes),
},
Layout {
size: Size(8 bytes),
align: AbiAndPrefAlign {
abi: Align(4 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: ScalarPair(
Initialized {
@@ -272,9 +284,13 @@ error: layout_of(std::result::Result<i32, i32>) = Layout {
variants: Single {
index: 1,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(4 bytes),
},
],
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(4 bytes),
}
--> $DIR/debug.rs:16:1
|
@@ -285,7 +301,7 @@ error: layout_of(i32) = Layout {
size: Size(4 bytes),
align: AbiAndPrefAlign {
abi: Align(4 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: Scalar(
Initialized {
@@ -301,6 +317,8 @@ error: layout_of(i32) = Layout {
variants: Single {
index: 0,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(4 bytes),
}
--> $DIR/debug.rs:19:1
|
@@ -311,7 +329,7 @@ error: layout_of(V) = Layout {
size: Size(2 bytes),
align: AbiAndPrefAlign {
abi: Align(2 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: Aggregate {
sized: true,
@@ -323,8 +341,10 @@ error: layout_of(V) = Layout {
variants: Single {
index: 0,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(2 bytes),
}
- --> $DIR/debug.rs:22:1
+ --> $DIR/debug.rs:25:1
|
LL | pub union V {
| ^^^^^^^^^^^
@@ -333,7 +353,7 @@ error: layout_of(W) = Layout {
size: Size(2 bytes),
align: AbiAndPrefAlign {
abi: Align(2 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: Aggregate {
sized: true,
@@ -345,8 +365,10 @@ error: layout_of(W) = Layout {
variants: Single {
index: 0,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(2 bytes),
}
- --> $DIR/debug.rs:28:1
+ --> $DIR/debug.rs:31:1
|
LL | pub union W {
| ^^^^^^^^^^^
@@ -355,7 +377,7 @@ error: layout_of(Y) = Layout {
size: Size(0 bytes),
align: AbiAndPrefAlign {
abi: Align(2 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: Aggregate {
sized: true,
@@ -367,8 +389,10 @@ error: layout_of(Y) = Layout {
variants: Single {
index: 0,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(2 bytes),
}
- --> $DIR/debug.rs:34:1
+ --> $DIR/debug.rs:37:1
|
LL | pub union Y {
| ^^^^^^^^^^^
@@ -377,7 +401,7 @@ error: layout_of(P1) = Layout {
size: Size(4 bytes),
align: AbiAndPrefAlign {
abi: Align(1 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: Aggregate {
sized: true,
@@ -389,8 +413,10 @@ error: layout_of(P1) = Layout {
variants: Single {
index: 0,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(1 bytes),
}
- --> $DIR/debug.rs:41:1
+ --> $DIR/debug.rs:44:1
|
LL | union P1 { x: u32 }
| ^^^^^^^^
@@ -399,7 +425,7 @@ error: layout_of(P2) = Layout {
size: Size(8 bytes),
align: AbiAndPrefAlign {
abi: Align(1 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: Aggregate {
sized: true,
@@ -411,8 +437,10 @@ error: layout_of(P2) = Layout {
variants: Single {
index: 0,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(1 bytes),
}
- --> $DIR/debug.rs:45:1
+ --> $DIR/debug.rs:48:1
|
LL | union P2 { x: (u32, u32) }
| ^^^^^^^^
@@ -421,7 +449,7 @@ error: layout_of(P3) = Layout {
size: Size(16 bytes),
align: AbiAndPrefAlign {
abi: Align(1 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: Aggregate {
sized: true,
@@ -433,8 +461,10 @@ error: layout_of(P3) = Layout {
variants: Single {
index: 0,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(1 bytes),
}
- --> $DIR/debug.rs:53:1
+ --> $DIR/debug.rs:56:1
|
LL | union P3 { x: F32x4 }
| ^^^^^^^^
@@ -443,7 +473,7 @@ error: layout_of(P4) = Layout {
size: Size(12 bytes),
align: AbiAndPrefAlign {
abi: Align(1 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: Aggregate {
sized: true,
@@ -455,8 +485,10 @@ error: layout_of(P4) = Layout {
variants: Single {
index: 0,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(1 bytes),
}
- --> $DIR/debug.rs:57:1
+ --> $DIR/debug.rs:60:1
|
LL | union P4 { x: E }
| ^^^^^^^^
@@ -465,7 +497,7 @@ error: layout_of(P5) = Layout {
size: Size(1 bytes),
align: AbiAndPrefAlign {
abi: Align(1 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: Scalar(
Union {
@@ -482,17 +514,19 @@ error: layout_of(P5) = Layout {
variants: Single {
index: 0,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(1 bytes),
}
- --> $DIR/debug.rs:61:1
+ --> $DIR/debug.rs:64:1
|
LL | union P5 { zst: [u16; 0], byte: u8 }
| ^^^^^^^^
-error: layout_of(std::mem::MaybeUninit<u8>) = Layout {
+error: layout_of(MaybeUninit<u8>) = Layout {
size: Size(1 bytes),
align: AbiAndPrefAlign {
abi: Align(1 bytes),
- pref: $PREF_ALIGN,
+ pref: $SOME_ALIGN,
},
abi: Scalar(
Union {
@@ -509,11 +543,35 @@ error: layout_of(std::mem::MaybeUninit<u8>) = Layout {
variants: Single {
index: 0,
},
+ max_repr_align: None,
+ unadjusted_abi_align: Align(1 bytes),
}
- --> $DIR/debug.rs:64:1
+ --> $DIR/debug.rs:67:1
|
LL | type X = std::mem::MaybeUninit<u8>;
| ^^^^^^
-error: aborting due to 14 previous errors
+error: `#[rustc_layout]` can only be applied to `struct`/`enum`/`union` declarations and type aliases
+ --> $DIR/debug.rs:70:1
+ |
+LL | const C: () = ();
+ | ^^^^^^^^^^^
+
+error[E0277]: the size for values of type `str` cannot be known at compilation time
+ --> $DIR/debug.rs:78:19
+ |
+LL | type Impossible = (str, str);
+ | ^^^^^^^^^^ doesn't have a size known at compile-time
+ |
+ = help: the trait `Sized` is not implemented for `str`
+ = note: only the last element of a tuple may have a dynamically sized type
+
+error: `#[rustc_layout]` can only be applied to `struct`/`enum`/`union` declarations and type aliases
+ --> $DIR/debug.rs:74:5
+ |
+LL | const C: () = ();
+ | ^^^^^^^^^^^
+
+error: aborting due to 17 previous errors
+For more information about this error, try `rustc --explain E0277`.