@@ -81,7 +81,7 @@ error: layout_of(E) = Layout {
81
81
],
82
82
},
83
83
}
84
- --> $DIR/debug.rs:6 :1
84
+ --> $DIR/debug.rs:7 :1
85
85
|
86
86
LL | enum E { Foo, Bar(!, i32, i32) }
87
87
| ^^^^^^
@@ -125,7 +125,7 @@ error: layout_of(S) = Layout {
125
125
index: 0,
126
126
},
127
127
}
128
- --> $DIR/debug.rs:9 :1
128
+ --> $DIR/debug.rs:10 :1
129
129
|
130
130
LL | struct S { f1: i32, f2: (), f3: i32 }
131
131
| ^^^^^^^^
@@ -147,7 +147,7 @@ error: layout_of(U) = Layout {
147
147
index: 0,
148
148
},
149
149
}
150
- --> $DIR/debug.rs:12 :1
150
+ --> $DIR/debug.rs:13 :1
151
151
|
152
152
LL | union U { f1: (i32, i32), f3: i32 }
153
153
| ^^^^^^^
@@ -276,7 +276,7 @@ error: layout_of(std::result::Result<i32, i32>) = Layout {
276
276
],
277
277
},
278
278
}
279
- --> $DIR/debug.rs:15 :1
279
+ --> $DIR/debug.rs:16 :1
280
280
|
281
281
LL | type Test = Result<i32, i32>;
282
282
| ^^^^^^^^^
@@ -302,7 +302,7 @@ error: layout_of(i32) = Layout {
302
302
index: 0,
303
303
},
304
304
}
305
- --> $DIR/debug.rs:18 :1
305
+ --> $DIR/debug.rs:19 :1
306
306
|
307
307
LL | type T = impl std::fmt::Debug;
308
308
| ^^^^^^
@@ -324,7 +324,7 @@ error: layout_of(V) = Layout {
324
324
index: 0,
325
325
},
326
326
}
327
- --> $DIR/debug.rs:21 :1
327
+ --> $DIR/debug.rs:22 :1
328
328
|
329
329
LL | pub union V {
330
330
| ^^^^^^^^^^^
@@ -346,7 +346,7 @@ error: layout_of(W) = Layout {
346
346
index: 0,
347
347
},
348
348
}
349
- --> $DIR/debug.rs:27 :1
349
+ --> $DIR/debug.rs:28 :1
350
350
|
351
351
LL | pub union W {
352
352
| ^^^^^^^^^^^
@@ -368,11 +368,99 @@ error: layout_of(Y) = Layout {
368
368
index: 0,
369
369
},
370
370
}
371
- --> $DIR/debug.rs:33 :1
371
+ --> $DIR/debug.rs:34 :1
372
372
|
373
373
LL | pub union Y {
374
374
| ^^^^^^^^^^^
375
375
376
+ error: layout_of(P1) = Layout {
377
+ size: Size(4 bytes),
378
+ align: AbiAndPrefAlign {
379
+ abi: Align(1 bytes),
380
+ pref: $PREF_ALIGN,
381
+ },
382
+ abi: Aggregate {
383
+ sized: true,
384
+ },
385
+ fields: Union(
386
+ 1,
387
+ ),
388
+ largest_niche: None,
389
+ variants: Single {
390
+ index: 0,
391
+ },
392
+ }
393
+ --> $DIR/debug.rs:41:1
394
+ |
395
+ LL | union P1 { x: u32 }
396
+ | ^^^^^^^^
397
+
398
+ error: layout_of(P2) = Layout {
399
+ size: Size(8 bytes),
400
+ align: AbiAndPrefAlign {
401
+ abi: Align(1 bytes),
402
+ pref: $PREF_ALIGN,
403
+ },
404
+ abi: Aggregate {
405
+ sized: true,
406
+ },
407
+ fields: Union(
408
+ 1,
409
+ ),
410
+ largest_niche: None,
411
+ variants: Single {
412
+ index: 0,
413
+ },
414
+ }
415
+ --> $DIR/debug.rs:45:1
416
+ |
417
+ LL | union P2 { x: (u32, u32) }
418
+ | ^^^^^^^^
419
+
420
+ error: layout_of(P3) = Layout {
421
+ size: Size(16 bytes),
422
+ align: AbiAndPrefAlign {
423
+ abi: Align(1 bytes),
424
+ pref: $PREF_ALIGN,
425
+ },
426
+ abi: Aggregate {
427
+ sized: true,
428
+ },
429
+ fields: Union(
430
+ 1,
431
+ ),
432
+ largest_niche: None,
433
+ variants: Single {
434
+ index: 0,
435
+ },
436
+ }
437
+ --> $DIR/debug.rs:53:1
438
+ |
439
+ LL | union P3 { x: F32x4 }
440
+ | ^^^^^^^^
441
+
442
+ error: layout_of(P4) = Layout {
443
+ size: Size(12 bytes),
444
+ align: AbiAndPrefAlign {
445
+ abi: Align(1 bytes),
446
+ pref: $PREF_ALIGN,
447
+ },
448
+ abi: Aggregate {
449
+ sized: true,
450
+ },
451
+ fields: Union(
452
+ 1,
453
+ ),
454
+ largest_niche: None,
455
+ variants: Single {
456
+ index: 0,
457
+ },
458
+ }
459
+ --> $DIR/debug.rs:57:1
460
+ |
461
+ LL | union P4 { x: E }
462
+ | ^^^^^^^^
463
+
376
464
error: layout_of(std::mem::MaybeUninit<u8>) = Layout {
377
465
size: Size(1 bytes),
378
466
align: AbiAndPrefAlign {
@@ -395,10 +483,10 @@ error: layout_of(std::mem::MaybeUninit<u8>) = Layout {
395
483
index: 0,
396
484
},
397
485
}
398
- --> $DIR/debug.rs:39 :1
486
+ --> $DIR/debug.rs:60 :1
399
487
|
400
488
LL | type X = std::mem::MaybeUninit<u8>;
401
489
| ^^^^^^
402
490
403
- error: aborting due to 9 previous errors
491
+ error: aborting due to 13 previous errors
404
492
0 commit comments