Skip to content

Commit 2c0d1d9

Browse files
authoredMar 6, 2025
Rollup merge of rust-lang#137805 - RalfJung:layout-debug-print, r=Noratrieb
adjust Layout debug printing to match the internal field name The field got renamed a while ago, but the debug printing was not updated to match.
2 parents 623c32b + 476b098 commit 2c0d1d9

21 files changed

+162
-162
lines changed
 

‎compiler/rustc_abi/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ where
18121812
f.debug_struct("Layout")
18131813
.field("size", size)
18141814
.field("align", align)
1815-
.field("abi", backend_repr)
1815+
.field("backend_repr", backend_repr)
18161816
.field("fields", fields)
18171817
.field("largest_niche", largest_niche)
18181818
.field("uninhabited", uninhabited)

‎tests/ui/abi/c-zst.aarch64-darwin.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ error: fn_abi_of(pass_zst) = FnAbi {
99
abi: $SOME_ALIGN,
1010
pref: $SOME_ALIGN,
1111
},
12-
abi: Memory {
12+
backend_repr: Memory {
1313
sized: true,
1414
},
1515
fields: Arbitrary {
@@ -38,7 +38,7 @@ error: fn_abi_of(pass_zst) = FnAbi {
3838
abi: $SOME_ALIGN,
3939
pref: $SOME_ALIGN,
4040
},
41-
abi: Memory {
41+
backend_repr: Memory {
4242
sized: true,
4343
},
4444
fields: Arbitrary {

‎tests/ui/abi/c-zst.powerpc-linux.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ error: fn_abi_of(pass_zst) = FnAbi {
99
abi: $SOME_ALIGN,
1010
pref: $SOME_ALIGN,
1111
},
12-
abi: Memory {
12+
backend_repr: Memory {
1313
sized: true,
1414
},
1515
fields: Arbitrary {
@@ -49,7 +49,7 @@ error: fn_abi_of(pass_zst) = FnAbi {
4949
abi: $SOME_ALIGN,
5050
pref: $SOME_ALIGN,
5151
},
52-
abi: Memory {
52+
backend_repr: Memory {
5353
sized: true,
5454
},
5555
fields: Arbitrary {

‎tests/ui/abi/c-zst.s390x-linux.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ error: fn_abi_of(pass_zst) = FnAbi {
99
abi: $SOME_ALIGN,
1010
pref: $SOME_ALIGN,
1111
},
12-
abi: Memory {
12+
backend_repr: Memory {
1313
sized: true,
1414
},
1515
fields: Arbitrary {
@@ -49,7 +49,7 @@ error: fn_abi_of(pass_zst) = FnAbi {
4949
abi: $SOME_ALIGN,
5050
pref: $SOME_ALIGN,
5151
},
52-
abi: Memory {
52+
backend_repr: Memory {
5353
sized: true,
5454
},
5555
fields: Arbitrary {

‎tests/ui/abi/c-zst.sparc64-linux.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ error: fn_abi_of(pass_zst) = FnAbi {
99
abi: $SOME_ALIGN,
1010
pref: $SOME_ALIGN,
1111
},
12-
abi: Memory {
12+
backend_repr: Memory {
1313
sized: true,
1414
},
1515
fields: Arbitrary {
@@ -49,7 +49,7 @@ error: fn_abi_of(pass_zst) = FnAbi {
4949
abi: $SOME_ALIGN,
5050
pref: $SOME_ALIGN,
5151
},
52-
abi: Memory {
52+
backend_repr: Memory {
5353
sized: true,
5454
},
5555
fields: Arbitrary {

‎tests/ui/abi/c-zst.x86_64-linux.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ error: fn_abi_of(pass_zst) = FnAbi {
99
abi: $SOME_ALIGN,
1010
pref: $SOME_ALIGN,
1111
},
12-
abi: Memory {
12+
backend_repr: Memory {
1313
sized: true,
1414
},
1515
fields: Arbitrary {
@@ -38,7 +38,7 @@ error: fn_abi_of(pass_zst) = FnAbi {
3838
abi: $SOME_ALIGN,
3939
pref: $SOME_ALIGN,
4040
},
41-
abi: Memory {
41+
backend_repr: Memory {
4242
sized: true,
4343
},
4444
fields: Arbitrary {

‎tests/ui/abi/c-zst.x86_64-pc-windows-gnu.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ error: fn_abi_of(pass_zst) = FnAbi {
99
abi: $SOME_ALIGN,
1010
pref: $SOME_ALIGN,
1111
},
12-
abi: Memory {
12+
backend_repr: Memory {
1313
sized: true,
1414
},
1515
fields: Arbitrary {
@@ -49,7 +49,7 @@ error: fn_abi_of(pass_zst) = FnAbi {
4949
abi: $SOME_ALIGN,
5050
pref: $SOME_ALIGN,
5151
},
52-
abi: Memory {
52+
backend_repr: Memory {
5353
sized: true,
5454
},
5555
fields: Arbitrary {

‎tests/ui/abi/debug.stderr

+24-24
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ error: fn_abi_of(test) = FnAbi {
99
abi: $SOME_ALIGN,
1010
pref: $SOME_ALIGN,
1111
},
12-
abi: Scalar(
12+
backend_repr: Scalar(
1313
Initialized {
1414
value: Int(
1515
I8,
@@ -48,7 +48,7 @@ error: fn_abi_of(test) = FnAbi {
4848
abi: $SOME_ALIGN,
4949
pref: $SOME_ALIGN,
5050
},
51-
abi: Scalar(
51+
backend_repr: Scalar(
5252
Initialized {
5353
value: Int(
5454
I8,
@@ -107,7 +107,7 @@ error: fn_abi_of(TestFnPtr) = FnAbi {
107107
abi: $SOME_ALIGN,
108108
pref: $SOME_ALIGN,
109109
},
110-
abi: Scalar(
110+
backend_repr: Scalar(
111111
Initialized {
112112
value: Int(
113113
I8,
@@ -155,7 +155,7 @@ error: fn_abi_of(TestFnPtr) = FnAbi {
155155
abi: $SOME_ALIGN,
156156
pref: $SOME_ALIGN,
157157
},
158-
abi: Scalar(
158+
backend_repr: Scalar(
159159
Initialized {
160160
value: Int(
161161
I8,
@@ -205,7 +205,7 @@ error: fn_abi_of(test_generic) = FnAbi {
205205
abi: $SOME_ALIGN,
206206
pref: $SOME_ALIGN,
207207
},
208-
abi: Scalar(
208+
backend_repr: Scalar(
209209
Initialized {
210210
value: Pointer(
211211
AddressSpace(
@@ -245,7 +245,7 @@ error: fn_abi_of(test_generic) = FnAbi {
245245
abi: $SOME_ALIGN,
246246
pref: $SOME_ALIGN,
247247
},
248-
abi: Memory {
248+
backend_repr: Memory {
249249
sized: true,
250250
},
251251
fields: Arbitrary {
@@ -292,7 +292,7 @@ error: ABIs are not compatible
292292
abi: $SOME_ALIGN,
293293
pref: $SOME_ALIGN,
294294
},
295-
abi: Scalar(
295+
backend_repr: Scalar(
296296
Initialized {
297297
value: Int(
298298
I8,
@@ -331,7 +331,7 @@ error: ABIs are not compatible
331331
abi: $SOME_ALIGN,
332332
pref: $SOME_ALIGN,
333333
},
334-
abi: Memory {
334+
backend_repr: Memory {
335335
sized: true,
336336
},
337337
fields: Arbitrary {
@@ -366,7 +366,7 @@ error: ABIs are not compatible
366366
abi: $SOME_ALIGN,
367367
pref: $SOME_ALIGN,
368368
},
369-
abi: Scalar(
369+
backend_repr: Scalar(
370370
Initialized {
371371
value: Int(
372372
I32,
@@ -405,7 +405,7 @@ error: ABIs are not compatible
405405
abi: $SOME_ALIGN,
406406
pref: $SOME_ALIGN,
407407
},
408-
abi: Memory {
408+
backend_repr: Memory {
409409
sized: true,
410410
},
411411
fields: Arbitrary {
@@ -446,7 +446,7 @@ error: ABIs are not compatible
446446
abi: $SOME_ALIGN,
447447
pref: $SOME_ALIGN,
448448
},
449-
abi: Memory {
449+
backend_repr: Memory {
450450
sized: true,
451451
},
452452
fields: Array {
@@ -486,7 +486,7 @@ error: ABIs are not compatible
486486
abi: $SOME_ALIGN,
487487
pref: $SOME_ALIGN,
488488
},
489-
abi: Memory {
489+
backend_repr: Memory {
490490
sized: true,
491491
},
492492
fields: Arbitrary {
@@ -521,7 +521,7 @@ error: ABIs are not compatible
521521
abi: $SOME_ALIGN,
522522
pref: $SOME_ALIGN,
523523
},
524-
abi: Memory {
524+
backend_repr: Memory {
525525
sized: true,
526526
},
527527
fields: Array {
@@ -561,7 +561,7 @@ error: ABIs are not compatible
561561
abi: $SOME_ALIGN,
562562
pref: $SOME_ALIGN,
563563
},
564-
abi: Memory {
564+
backend_repr: Memory {
565565
sized: true,
566566
},
567567
fields: Arbitrary {
@@ -602,7 +602,7 @@ error: ABIs are not compatible
602602
abi: $SOME_ALIGN,
603603
pref: $SOME_ALIGN,
604604
},
605-
abi: Scalar(
605+
backend_repr: Scalar(
606606
Initialized {
607607
value: Float(
608608
F32,
@@ -640,7 +640,7 @@ error: ABIs are not compatible
640640
abi: $SOME_ALIGN,
641641
pref: $SOME_ALIGN,
642642
},
643-
abi: Memory {
643+
backend_repr: Memory {
644644
sized: true,
645645
},
646646
fields: Arbitrary {
@@ -675,7 +675,7 @@ error: ABIs are not compatible
675675
abi: $SOME_ALIGN,
676676
pref: $SOME_ALIGN,
677677
},
678-
abi: Scalar(
678+
backend_repr: Scalar(
679679
Initialized {
680680
value: Int(
681681
I32,
@@ -714,7 +714,7 @@ error: ABIs are not compatible
714714
abi: $SOME_ALIGN,
715715
pref: $SOME_ALIGN,
716716
},
717-
abi: Memory {
717+
backend_repr: Memory {
718718
sized: true,
719719
},
720720
fields: Arbitrary {
@@ -755,7 +755,7 @@ error: ABIs are not compatible
755755
abi: $SOME_ALIGN,
756756
pref: $SOME_ALIGN,
757757
},
758-
abi: Scalar(
758+
backend_repr: Scalar(
759759
Initialized {
760760
value: Int(
761761
I32,
@@ -794,7 +794,7 @@ error: ABIs are not compatible
794794
abi: $SOME_ALIGN,
795795
pref: $SOME_ALIGN,
796796
},
797-
abi: Memory {
797+
backend_repr: Memory {
798798
sized: true,
799799
},
800800
fields: Arbitrary {
@@ -829,7 +829,7 @@ error: ABIs are not compatible
829829
abi: $SOME_ALIGN,
830830
pref: $SOME_ALIGN,
831831
},
832-
abi: Scalar(
832+
backend_repr: Scalar(
833833
Initialized {
834834
value: Int(
835835
I32,
@@ -868,7 +868,7 @@ error: ABIs are not compatible
868868
abi: $SOME_ALIGN,
869869
pref: $SOME_ALIGN,
870870
},
871-
abi: Memory {
871+
backend_repr: Memory {
872872
sized: true,
873873
},
874874
fields: Arbitrary {
@@ -923,7 +923,7 @@ error: fn_abi_of(assoc_test) = FnAbi {
923923
abi: $SOME_ALIGN,
924924
pref: $SOME_ALIGN,
925925
},
926-
abi: Scalar(
926+
backend_repr: Scalar(
927927
Initialized {
928928
value: Pointer(
929929
AddressSpace(
@@ -975,7 +975,7 @@ error: fn_abi_of(assoc_test) = FnAbi {
975975
abi: $SOME_ALIGN,
976976
pref: $SOME_ALIGN,
977977
},
978-
abi: Memory {
978+
backend_repr: Memory {
979979
sized: true,
980980
},
981981
fields: Arbitrary {

‎tests/ui/abi/sysv64-zst.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ error: fn_abi_of(pass_zst) = FnAbi {
99
abi: $SOME_ALIGN,
1010
pref: $SOME_ALIGN,
1111
},
12-
abi: Memory {
12+
backend_repr: Memory {
1313
sized: true,
1414
},
1515
fields: Arbitrary {
@@ -38,7 +38,7 @@ error: fn_abi_of(pass_zst) = FnAbi {
3838
abi: $SOME_ALIGN,
3939
pref: $SOME_ALIGN,
4040
},
41-
abi: Memory {
41+
backend_repr: Memory {
4242
sized: true,
4343
},
4444
fields: Arbitrary {

‎tests/ui/layout/debug.stderr

+18-18
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ error: layout_of(E) = Layout {
1010
abi: Align(4 bytes),
1111
pref: $SOME_ALIGN,
1212
},
13-
abi: Memory {
13+
backend_repr: Memory {
1414
sized: true,
1515
},
1616
fields: Arbitrary {
@@ -49,7 +49,7 @@ error: layout_of(E) = Layout {
4949
abi: Align(1 bytes),
5050
pref: $SOME_ALIGN,
5151
},
52-
abi: Memory {
52+
backend_repr: Memory {
5353
sized: true,
5454
},
5555
fields: Arbitrary {
@@ -71,7 +71,7 @@ error: layout_of(E) = Layout {
7171
abi: Align(4 bytes),
7272
pref: $SOME_ALIGN,
7373
},
74-
abi: Memory {
74+
backend_repr: Memory {
7575
sized: true,
7676
},
7777
fields: Arbitrary {
@@ -112,7 +112,7 @@ error: layout_of(S) = Layout {
112112
abi: Align(4 bytes),
113113
pref: $SOME_ALIGN,
114114
},
115-
abi: ScalarPair(
115+
backend_repr: ScalarPair(
116116
Initialized {
117117
value: Int(
118118
I32,
@@ -160,7 +160,7 @@ error: layout_of(U) = Layout {
160160
abi: Align(4 bytes),
161161
pref: $SOME_ALIGN,
162162
},
163-
abi: Memory {
163+
backend_repr: Memory {
164164
sized: true,
165165
},
166166
fields: Union(
@@ -186,7 +186,7 @@ error: layout_of(Result<i32, i32>) = Layout {
186186
abi: Align(4 bytes),
187187
pref: $SOME_ALIGN,
188188
},
189-
abi: ScalarPair(
189+
backend_repr: ScalarPair(
190190
Initialized {
191191
value: Int(
192192
I32,
@@ -238,7 +238,7 @@ error: layout_of(Result<i32, i32>) = Layout {
238238
abi: Align(4 bytes),
239239
pref: $SOME_ALIGN,
240240
},
241-
abi: ScalarPair(
241+
backend_repr: ScalarPair(
242242
Initialized {
243243
value: Int(
244244
I32,
@@ -277,7 +277,7 @@ error: layout_of(Result<i32, i32>) = Layout {
277277
abi: Align(4 bytes),
278278
pref: $SOME_ALIGN,
279279
},
280-
abi: ScalarPair(
280+
backend_repr: ScalarPair(
281281
Initialized {
282282
value: Int(
283283
I32,
@@ -327,7 +327,7 @@ error: layout_of(i32) = Layout {
327327
abi: Align(4 bytes),
328328
pref: $SOME_ALIGN,
329329
},
330-
abi: Scalar(
330+
backend_repr: Scalar(
331331
Initialized {
332332
value: Int(
333333
I32,
@@ -357,7 +357,7 @@ error: layout_of(V) = Layout {
357357
abi: Align(2 bytes),
358358
pref: $SOME_ALIGN,
359359
},
360-
abi: Memory {
360+
backend_repr: Memory {
361361
sized: true,
362362
},
363363
fields: Union(
@@ -383,7 +383,7 @@ error: layout_of(W) = Layout {
383383
abi: Align(2 bytes),
384384
pref: $SOME_ALIGN,
385385
},
386-
abi: Memory {
386+
backend_repr: Memory {
387387
sized: true,
388388
},
389389
fields: Union(
@@ -409,7 +409,7 @@ error: layout_of(Y) = Layout {
409409
abi: Align(2 bytes),
410410
pref: $SOME_ALIGN,
411411
},
412-
abi: Memory {
412+
backend_repr: Memory {
413413
sized: true,
414414
},
415415
fields: Union(
@@ -435,7 +435,7 @@ error: layout_of(P1) = Layout {
435435
abi: Align(1 bytes),
436436
pref: $SOME_ALIGN,
437437
},
438-
abi: Memory {
438+
backend_repr: Memory {
439439
sized: true,
440440
},
441441
fields: Union(
@@ -461,7 +461,7 @@ error: layout_of(P2) = Layout {
461461
abi: Align(1 bytes),
462462
pref: $SOME_ALIGN,
463463
},
464-
abi: Memory {
464+
backend_repr: Memory {
465465
sized: true,
466466
},
467467
fields: Union(
@@ -487,7 +487,7 @@ error: layout_of(P3) = Layout {
487487
abi: Align(1 bytes),
488488
pref: $SOME_ALIGN,
489489
},
490-
abi: Memory {
490+
backend_repr: Memory {
491491
sized: true,
492492
},
493493
fields: Union(
@@ -513,7 +513,7 @@ error: layout_of(P4) = Layout {
513513
abi: Align(1 bytes),
514514
pref: $SOME_ALIGN,
515515
},
516-
abi: Memory {
516+
backend_repr: Memory {
517517
sized: true,
518518
},
519519
fields: Union(
@@ -539,7 +539,7 @@ error: layout_of(P5) = Layout {
539539
abi: Align(1 bytes),
540540
pref: $SOME_ALIGN,
541541
},
542-
abi: Scalar(
542+
backend_repr: Scalar(
543543
Union {
544544
value: Int(
545545
I8,
@@ -570,7 +570,7 @@ error: layout_of(MaybeUninit<u8>) = Layout {
570570
abi: Align(1 bytes),
571571
pref: $SOME_ALIGN,
572572
},
573-
abi: Scalar(
573+
backend_repr: Scalar(
574574
Union {
575575
value: Int(
576576
I8,

‎tests/ui/layout/hexagon-enum.stderr

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: layout_of(A) = Layout {
44
abi: Align(1 bytes),
55
pref: Align(1 bytes),
66
},
7-
abi: Scalar(
7+
backend_repr: Scalar(
88
Initialized {
99
value: Int(
1010
I8,
@@ -49,7 +49,7 @@ error: layout_of(A) = Layout {
4949
abi: Align(1 bytes),
5050
pref: Align(1 bytes),
5151
},
52-
abi: Memory {
52+
backend_repr: Memory {
5353
sized: true,
5454
},
5555
fields: Arbitrary {
@@ -82,7 +82,7 @@ error: layout_of(B) = Layout {
8282
abi: Align(1 bytes),
8383
pref: Align(1 bytes),
8484
},
85-
abi: Scalar(
85+
backend_repr: Scalar(
8686
Initialized {
8787
value: Int(
8888
I8,
@@ -127,7 +127,7 @@ error: layout_of(B) = Layout {
127127
abi: Align(1 bytes),
128128
pref: Align(1 bytes),
129129
},
130-
abi: Memory {
130+
backend_repr: Memory {
131131
sized: true,
132132
},
133133
fields: Arbitrary {
@@ -160,7 +160,7 @@ error: layout_of(C) = Layout {
160160
abi: Align(2 bytes),
161161
pref: Align(2 bytes),
162162
},
163-
abi: Scalar(
163+
backend_repr: Scalar(
164164
Initialized {
165165
value: Int(
166166
I16,
@@ -205,7 +205,7 @@ error: layout_of(C) = Layout {
205205
abi: Align(2 bytes),
206206
pref: Align(2 bytes),
207207
},
208-
abi: Memory {
208+
backend_repr: Memory {
209209
sized: true,
210210
},
211211
fields: Arbitrary {
@@ -238,7 +238,7 @@ error: layout_of(P) = Layout {
238238
abi: Align(4 bytes),
239239
pref: Align(4 bytes),
240240
},
241-
abi: Scalar(
241+
backend_repr: Scalar(
242242
Initialized {
243243
value: Int(
244244
I32,
@@ -283,7 +283,7 @@ error: layout_of(P) = Layout {
283283
abi: Align(4 bytes),
284284
pref: Align(4 bytes),
285285
},
286-
abi: Memory {
286+
backend_repr: Memory {
287287
sized: true,
288288
},
289289
fields: Arbitrary {
@@ -316,7 +316,7 @@ error: layout_of(T) = Layout {
316316
abi: Align(4 bytes),
317317
pref: Align(4 bytes),
318318
},
319-
abi: Scalar(
319+
backend_repr: Scalar(
320320
Initialized {
321321
value: Int(
322322
I32,
@@ -361,7 +361,7 @@ error: layout_of(T) = Layout {
361361
abi: Align(4 bytes),
362362
pref: Align(4 bytes),
363363
},
364-
abi: Memory {
364+
backend_repr: Memory {
365365
sized: true,
366366
},
367367
fields: Arbitrary {

‎tests/ui/layout/issue-96158-scalarpair-payload-might-be-uninit.stderr

+17-17
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: layout_of(MissingPayloadField) = Layout {
44
abi: Align(1 bytes),
55
pref: $PREF_ALIGN,
66
},
7-
abi: ScalarPair(
7+
backend_repr: ScalarPair(
88
Initialized {
99
value: Int(
1010
I8,
@@ -55,7 +55,7 @@ error: layout_of(MissingPayloadField) = Layout {
5555
abi: Align(1 bytes),
5656
pref: $PREF_ALIGN,
5757
},
58-
abi: ScalarPair(
58+
backend_repr: ScalarPair(
5959
Initialized {
6060
value: Int(
6161
I8,
@@ -93,7 +93,7 @@ error: layout_of(MissingPayloadField) = Layout {
9393
abi: Align(1 bytes),
9494
pref: $PREF_ALIGN,
9595
},
96-
abi: Memory {
96+
backend_repr: Memory {
9797
sized: true,
9898
},
9999
fields: Arbitrary {
@@ -126,7 +126,7 @@ error: layout_of(CommonPayloadField) = Layout {
126126
abi: Align(1 bytes),
127127
pref: $PREF_ALIGN,
128128
},
129-
abi: ScalarPair(
129+
backend_repr: ScalarPair(
130130
Initialized {
131131
value: Int(
132132
I8,
@@ -178,7 +178,7 @@ error: layout_of(CommonPayloadField) = Layout {
178178
abi: Align(1 bytes),
179179
pref: $PREF_ALIGN,
180180
},
181-
abi: ScalarPair(
181+
backend_repr: ScalarPair(
182182
Initialized {
183183
value: Int(
184184
I8,
@@ -217,7 +217,7 @@ error: layout_of(CommonPayloadField) = Layout {
217217
abi: Align(1 bytes),
218218
pref: $PREF_ALIGN,
219219
},
220-
abi: ScalarPair(
220+
backend_repr: ScalarPair(
221221
Initialized {
222222
value: Int(
223223
I8,
@@ -267,7 +267,7 @@ error: layout_of(CommonPayloadFieldIsMaybeUninit) = Layout {
267267
abi: Align(1 bytes),
268268
pref: $PREF_ALIGN,
269269
},
270-
abi: ScalarPair(
270+
backend_repr: ScalarPair(
271271
Initialized {
272272
value: Int(
273273
I8,
@@ -318,7 +318,7 @@ error: layout_of(CommonPayloadFieldIsMaybeUninit) = Layout {
318318
abi: Align(1 bytes),
319319
pref: $PREF_ALIGN,
320320
},
321-
abi: ScalarPair(
321+
backend_repr: ScalarPair(
322322
Initialized {
323323
value: Int(
324324
I8,
@@ -356,7 +356,7 @@ error: layout_of(CommonPayloadFieldIsMaybeUninit) = Layout {
356356
abi: Align(1 bytes),
357357
pref: $PREF_ALIGN,
358358
},
359-
abi: ScalarPair(
359+
backend_repr: ScalarPair(
360360
Initialized {
361361
value: Int(
362362
I8,
@@ -405,7 +405,7 @@ error: layout_of(NicheFirst) = Layout {
405405
abi: Align(1 bytes),
406406
pref: $PREF_ALIGN,
407407
},
408-
abi: ScalarPair(
408+
backend_repr: ScalarPair(
409409
Initialized {
410410
value: Int(
411411
I8,
@@ -460,7 +460,7 @@ error: layout_of(NicheFirst) = Layout {
460460
abi: Align(1 bytes),
461461
pref: $PREF_ALIGN,
462462
},
463-
abi: ScalarPair(
463+
backend_repr: ScalarPair(
464464
Initialized {
465465
value: Int(
466466
I8,
@@ -510,7 +510,7 @@ error: layout_of(NicheFirst) = Layout {
510510
abi: Align(1 bytes),
511511
pref: $PREF_ALIGN,
512512
},
513-
abi: Memory {
513+
backend_repr: Memory {
514514
sized: true,
515515
},
516516
fields: Arbitrary {
@@ -532,7 +532,7 @@ error: layout_of(NicheFirst) = Layout {
532532
abi: Align(1 bytes),
533533
pref: $PREF_ALIGN,
534534
},
535-
abi: Memory {
535+
backend_repr: Memory {
536536
sized: true,
537537
},
538538
fields: Arbitrary {
@@ -565,7 +565,7 @@ error: layout_of(NicheSecond) = Layout {
565565
abi: Align(1 bytes),
566566
pref: $PREF_ALIGN,
567567
},
568-
abi: ScalarPair(
568+
backend_repr: ScalarPair(
569569
Initialized {
570570
value: Int(
571571
I8,
@@ -620,7 +620,7 @@ error: layout_of(NicheSecond) = Layout {
620620
abi: Align(1 bytes),
621621
pref: $PREF_ALIGN,
622622
},
623-
abi: ScalarPair(
623+
backend_repr: ScalarPair(
624624
Initialized {
625625
value: Int(
626626
I8,
@@ -670,7 +670,7 @@ error: layout_of(NicheSecond) = Layout {
670670
abi: Align(1 bytes),
671671
pref: $PREF_ALIGN,
672672
},
673-
abi: Memory {
673+
backend_repr: Memory {
674674
sized: true,
675675
},
676676
fields: Arbitrary {
@@ -692,7 +692,7 @@ error: layout_of(NicheSecond) = Layout {
692692
abi: Align(1 bytes),
693693
pref: $PREF_ALIGN,
694694
},
695-
abi: Memory {
695+
backend_repr: Memory {
696696
sized: true,
697697
},
698698
fields: Arbitrary {

‎tests/ui/layout/issue-96185-overaligned-enum.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: layout_of(Aligned1) = Layout {
44
abi: Align(8 bytes),
55
pref: $PREF_ALIGN,
66
},
7-
abi: Memory {
7+
backend_repr: Memory {
88
sized: true,
99
},
1010
fields: Arbitrary {
@@ -43,7 +43,7 @@ error: layout_of(Aligned1) = Layout {
4343
abi: Align(8 bytes),
4444
pref: $PREF_ALIGN,
4545
},
46-
abi: Memory {
46+
backend_repr: Memory {
4747
sized: true,
4848
},
4949
fields: Arbitrary {
@@ -67,7 +67,7 @@ error: layout_of(Aligned1) = Layout {
6767
abi: Align(8 bytes),
6868
pref: $PREF_ALIGN,
6969
},
70-
abi: Memory {
70+
backend_repr: Memory {
7171
sized: true,
7272
},
7373
fields: Arbitrary {
@@ -104,7 +104,7 @@ error: layout_of(Aligned2) = Layout {
104104
abi: Align(1 bytes),
105105
pref: $PREF_ALIGN,
106106
},
107-
abi: Scalar(
107+
backend_repr: Scalar(
108108
Initialized {
109109
value: Int(
110110
I8,
@@ -149,7 +149,7 @@ error: layout_of(Aligned2) = Layout {
149149
abi: Align(1 bytes),
150150
pref: $PREF_ALIGN,
151151
},
152-
abi: Memory {
152+
backend_repr: Memory {
153153
sized: true,
154154
},
155155
fields: Arbitrary {
@@ -173,7 +173,7 @@ error: layout_of(Aligned2) = Layout {
173173
abi: Align(1 bytes),
174174
pref: $PREF_ALIGN,
175175
},
176-
abi: Memory {
176+
backend_repr: Memory {
177177
sized: true,
178178
},
179179
fields: Arbitrary {

‎tests/ui/layout/thumb-enum.stderr

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: layout_of(A) = Layout {
44
abi: Align(1 bytes),
55
pref: Align(4 bytes),
66
},
7-
abi: Scalar(
7+
backend_repr: Scalar(
88
Initialized {
99
value: Int(
1010
I8,
@@ -49,7 +49,7 @@ error: layout_of(A) = Layout {
4949
abi: Align(1 bytes),
5050
pref: Align(4 bytes),
5151
},
52-
abi: Memory {
52+
backend_repr: Memory {
5353
sized: true,
5454
},
5555
fields: Arbitrary {
@@ -82,7 +82,7 @@ error: layout_of(B) = Layout {
8282
abi: Align(1 bytes),
8383
pref: Align(4 bytes),
8484
},
85-
abi: Scalar(
85+
backend_repr: Scalar(
8686
Initialized {
8787
value: Int(
8888
I8,
@@ -127,7 +127,7 @@ error: layout_of(B) = Layout {
127127
abi: Align(1 bytes),
128128
pref: Align(4 bytes),
129129
},
130-
abi: Memory {
130+
backend_repr: Memory {
131131
sized: true,
132132
},
133133
fields: Arbitrary {
@@ -160,7 +160,7 @@ error: layout_of(C) = Layout {
160160
abi: Align(2 bytes),
161161
pref: Align(4 bytes),
162162
},
163-
abi: Scalar(
163+
backend_repr: Scalar(
164164
Initialized {
165165
value: Int(
166166
I16,
@@ -205,7 +205,7 @@ error: layout_of(C) = Layout {
205205
abi: Align(2 bytes),
206206
pref: Align(4 bytes),
207207
},
208-
abi: Memory {
208+
backend_repr: Memory {
209209
sized: true,
210210
},
211211
fields: Arbitrary {
@@ -238,7 +238,7 @@ error: layout_of(P) = Layout {
238238
abi: Align(4 bytes),
239239
pref: Align(4 bytes),
240240
},
241-
abi: Scalar(
241+
backend_repr: Scalar(
242242
Initialized {
243243
value: Int(
244244
I32,
@@ -283,7 +283,7 @@ error: layout_of(P) = Layout {
283283
abi: Align(4 bytes),
284284
pref: Align(4 bytes),
285285
},
286-
abi: Memory {
286+
backend_repr: Memory {
287287
sized: true,
288288
},
289289
fields: Arbitrary {
@@ -316,7 +316,7 @@ error: layout_of(T) = Layout {
316316
abi: Align(4 bytes),
317317
pref: Align(4 bytes),
318318
},
319-
abi: Scalar(
319+
backend_repr: Scalar(
320320
Initialized {
321321
value: Int(
322322
I32,
@@ -361,7 +361,7 @@ error: layout_of(T) = Layout {
361361
abi: Align(4 bytes),
362362
pref: Align(4 bytes),
363363
},
364-
abi: Memory {
364+
backend_repr: Memory {
365365
sized: true,
366366
},
367367
fields: Arbitrary {

‎tests/ui/layout/zero-sized-array-enum-niche.stderr

+13-13
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: layout_of(Result<[u32; 0], bool>) = Layout {
44
abi: Align(4 bytes),
55
pref: $PREF_ALIGN,
66
},
7-
abi: Memory {
7+
backend_repr: Memory {
88
sized: true,
99
},
1010
fields: Arbitrary {
@@ -43,7 +43,7 @@ error: layout_of(Result<[u32; 0], bool>) = Layout {
4343
abi: Align(4 bytes),
4444
pref: $PREF_ALIGN,
4545
},
46-
abi: Memory {
46+
backend_repr: Memory {
4747
sized: true,
4848
},
4949
fields: Arbitrary {
@@ -69,7 +69,7 @@ error: layout_of(Result<[u32; 0], bool>) = Layout {
6969
abi: Align(1 bytes),
7070
pref: $PREF_ALIGN,
7171
},
72-
abi: Memory {
72+
backend_repr: Memory {
7373
sized: true,
7474
},
7575
fields: Arbitrary {
@@ -115,7 +115,7 @@ error: layout_of(MultipleAlignments) = Layout {
115115
abi: Align(4 bytes),
116116
pref: $PREF_ALIGN,
117117
},
118-
abi: Memory {
118+
backend_repr: Memory {
119119
sized: true,
120120
},
121121
fields: Arbitrary {
@@ -154,7 +154,7 @@ error: layout_of(MultipleAlignments) = Layout {
154154
abi: Align(2 bytes),
155155
pref: $PREF_ALIGN,
156156
},
157-
abi: Memory {
157+
backend_repr: Memory {
158158
sized: true,
159159
},
160160
fields: Arbitrary {
@@ -180,7 +180,7 @@ error: layout_of(MultipleAlignments) = Layout {
180180
abi: Align(4 bytes),
181181
pref: $PREF_ALIGN,
182182
},
183-
abi: Memory {
183+
backend_repr: Memory {
184184
sized: true,
185185
},
186186
fields: Arbitrary {
@@ -206,7 +206,7 @@ error: layout_of(MultipleAlignments) = Layout {
206206
abi: Align(1 bytes),
207207
pref: $PREF_ALIGN,
208208
},
209-
abi: Memory {
209+
backend_repr: Memory {
210210
sized: true,
211211
},
212212
fields: Arbitrary {
@@ -252,7 +252,7 @@ error: layout_of(Result<[u32; 0], Packed<NonZero<u16>>>) = Layout {
252252
abi: Align(4 bytes),
253253
pref: $PREF_ALIGN,
254254
},
255-
abi: Memory {
255+
backend_repr: Memory {
256256
sized: true,
257257
},
258258
fields: Arbitrary {
@@ -291,7 +291,7 @@ error: layout_of(Result<[u32; 0], Packed<NonZero<u16>>>) = Layout {
291291
abi: Align(4 bytes),
292292
pref: $PREF_ALIGN,
293293
},
294-
abi: Memory {
294+
backend_repr: Memory {
295295
sized: true,
296296
},
297297
fields: Arbitrary {
@@ -317,7 +317,7 @@ error: layout_of(Result<[u32; 0], Packed<NonZero<u16>>>) = Layout {
317317
abi: Align(1 bytes),
318318
pref: $PREF_ALIGN,
319319
},
320-
abi: Memory {
320+
backend_repr: Memory {
321321
sized: true,
322322
},
323323
fields: Arbitrary {
@@ -363,7 +363,7 @@ error: layout_of(Result<[u32; 0], Packed<U16IsZero>>) = Layout {
363363
abi: Align(4 bytes),
364364
pref: $PREF_ALIGN,
365365
},
366-
abi: Memory {
366+
backend_repr: Memory {
367367
sized: true,
368368
},
369369
fields: Arbitrary {
@@ -406,7 +406,7 @@ error: layout_of(Result<[u32; 0], Packed<U16IsZero>>) = Layout {
406406
abi: Align(4 bytes),
407407
pref: $PREF_ALIGN,
408408
},
409-
abi: Memory {
409+
backend_repr: Memory {
410410
sized: true,
411411
},
412412
fields: Arbitrary {
@@ -432,7 +432,7 @@ error: layout_of(Result<[u32; 0], Packed<U16IsZero>>) = Layout {
432432
abi: Align(1 bytes),
433433
pref: $PREF_ALIGN,
434434
},
435-
abi: Memory {
435+
backend_repr: Memory {
436436
sized: true,
437437
},
438438
fields: Arbitrary {

‎tests/ui/repr/repr-c-dead-variants.aarch64-unknown-linux-gnu.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: layout_of(Univariant) = Layout {
44
abi: Align(4 bytes),
55
pref: $SOME_ALIGN,
66
},
7-
abi: Scalar(
7+
backend_repr: Scalar(
88
Initialized {
99
value: Int(
1010
I32,
@@ -49,7 +49,7 @@ error: layout_of(Univariant) = Layout {
4949
abi: Align(4 bytes),
5050
pref: $SOME_ALIGN,
5151
},
52-
abi: Scalar(
52+
backend_repr: Scalar(
5353
Initialized {
5454
value: Int(
5555
I32,
@@ -92,7 +92,7 @@ error: layout_of(TwoVariants) = Layout {
9292
abi: Align(4 bytes),
9393
pref: $SOME_ALIGN,
9494
},
95-
abi: ScalarPair(
95+
backend_repr: ScalarPair(
9696
Initialized {
9797
value: Int(
9898
I32,
@@ -143,7 +143,7 @@ error: layout_of(TwoVariants) = Layout {
143143
abi: Align(4 bytes),
144144
pref: $SOME_ALIGN,
145145
},
146-
abi: ScalarPair(
146+
backend_repr: ScalarPair(
147147
Initialized {
148148
value: Int(
149149
I32,
@@ -181,7 +181,7 @@ error: layout_of(TwoVariants) = Layout {
181181
abi: Align(4 bytes),
182182
pref: $SOME_ALIGN,
183183
},
184-
abi: ScalarPair(
184+
backend_repr: ScalarPair(
185185
Initialized {
186186
value: Int(
187187
I32,
@@ -230,7 +230,7 @@ error: layout_of(DeadBranchHasOtherField) = Layout {
230230
abi: Align(8 bytes),
231231
pref: $SOME_ALIGN,
232232
},
233-
abi: Memory {
233+
backend_repr: Memory {
234234
sized: true,
235235
},
236236
fields: Arbitrary {
@@ -269,7 +269,7 @@ error: layout_of(DeadBranchHasOtherField) = Layout {
269269
abi: Align(8 bytes),
270270
pref: $SOME_ALIGN,
271271
},
272-
abi: Memory {
272+
backend_repr: Memory {
273273
sized: true,
274274
},
275275
fields: Arbitrary {
@@ -299,7 +299,7 @@ error: layout_of(DeadBranchHasOtherField) = Layout {
299299
abi: Align(8 bytes),
300300
pref: $SOME_ALIGN,
301301
},
302-
abi: Memory {
302+
backend_repr: Memory {
303303
sized: true,
304304
},
305305
fields: Arbitrary {

‎tests/ui/repr/repr-c-dead-variants.armebv7r-none-eabi.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: layout_of(Univariant) = Layout {
44
abi: Align(1 bytes),
55
pref: $SOME_ALIGN,
66
},
7-
abi: Scalar(
7+
backend_repr: Scalar(
88
Initialized {
99
value: Int(
1010
I8,
@@ -49,7 +49,7 @@ error: layout_of(Univariant) = Layout {
4949
abi: Align(1 bytes),
5050
pref: $SOME_ALIGN,
5151
},
52-
abi: Scalar(
52+
backend_repr: Scalar(
5353
Initialized {
5454
value: Int(
5555
I8,
@@ -92,7 +92,7 @@ error: layout_of(TwoVariants) = Layout {
9292
abi: Align(1 bytes),
9393
pref: $SOME_ALIGN,
9494
},
95-
abi: ScalarPair(
95+
backend_repr: ScalarPair(
9696
Initialized {
9797
value: Int(
9898
I8,
@@ -143,7 +143,7 @@ error: layout_of(TwoVariants) = Layout {
143143
abi: Align(1 bytes),
144144
pref: $SOME_ALIGN,
145145
},
146-
abi: ScalarPair(
146+
backend_repr: ScalarPair(
147147
Initialized {
148148
value: Int(
149149
I8,
@@ -181,7 +181,7 @@ error: layout_of(TwoVariants) = Layout {
181181
abi: Align(1 bytes),
182182
pref: $SOME_ALIGN,
183183
},
184-
abi: ScalarPair(
184+
backend_repr: ScalarPair(
185185
Initialized {
186186
value: Int(
187187
I8,
@@ -230,7 +230,7 @@ error: layout_of(DeadBranchHasOtherField) = Layout {
230230
abi: Align(8 bytes),
231231
pref: $SOME_ALIGN,
232232
},
233-
abi: Memory {
233+
backend_repr: Memory {
234234
sized: true,
235235
},
236236
fields: Arbitrary {
@@ -269,7 +269,7 @@ error: layout_of(DeadBranchHasOtherField) = Layout {
269269
abi: Align(8 bytes),
270270
pref: $SOME_ALIGN,
271271
},
272-
abi: Memory {
272+
backend_repr: Memory {
273273
sized: true,
274274
},
275275
fields: Arbitrary {
@@ -299,7 +299,7 @@ error: layout_of(DeadBranchHasOtherField) = Layout {
299299
abi: Align(8 bytes),
300300
pref: $SOME_ALIGN,
301301
},
302-
abi: Memory {
302+
backend_repr: Memory {
303303
sized: true,
304304
},
305305
fields: Arbitrary {

‎tests/ui/repr/repr-c-dead-variants.i686-pc-windows-msvc.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: layout_of(Univariant) = Layout {
44
abi: Align(4 bytes),
55
pref: $SOME_ALIGN,
66
},
7-
abi: Scalar(
7+
backend_repr: Scalar(
88
Initialized {
99
value: Int(
1010
I32,
@@ -49,7 +49,7 @@ error: layout_of(Univariant) = Layout {
4949
abi: Align(4 bytes),
5050
pref: $SOME_ALIGN,
5151
},
52-
abi: Scalar(
52+
backend_repr: Scalar(
5353
Initialized {
5454
value: Int(
5555
I32,
@@ -92,7 +92,7 @@ error: layout_of(TwoVariants) = Layout {
9292
abi: Align(4 bytes),
9393
pref: $SOME_ALIGN,
9494
},
95-
abi: ScalarPair(
95+
backend_repr: ScalarPair(
9696
Initialized {
9797
value: Int(
9898
I32,
@@ -143,7 +143,7 @@ error: layout_of(TwoVariants) = Layout {
143143
abi: Align(4 bytes),
144144
pref: $SOME_ALIGN,
145145
},
146-
abi: ScalarPair(
146+
backend_repr: ScalarPair(
147147
Initialized {
148148
value: Int(
149149
I32,
@@ -181,7 +181,7 @@ error: layout_of(TwoVariants) = Layout {
181181
abi: Align(4 bytes),
182182
pref: $SOME_ALIGN,
183183
},
184-
abi: ScalarPair(
184+
backend_repr: ScalarPair(
185185
Initialized {
186186
value: Int(
187187
I32,
@@ -230,7 +230,7 @@ error: layout_of(DeadBranchHasOtherField) = Layout {
230230
abi: Align(8 bytes),
231231
pref: $SOME_ALIGN,
232232
},
233-
abi: Memory {
233+
backend_repr: Memory {
234234
sized: true,
235235
},
236236
fields: Arbitrary {
@@ -269,7 +269,7 @@ error: layout_of(DeadBranchHasOtherField) = Layout {
269269
abi: Align(8 bytes),
270270
pref: $SOME_ALIGN,
271271
},
272-
abi: Memory {
272+
backend_repr: Memory {
273273
sized: true,
274274
},
275275
fields: Arbitrary {
@@ -299,7 +299,7 @@ error: layout_of(DeadBranchHasOtherField) = Layout {
299299
abi: Align(8 bytes),
300300
pref: $SOME_ALIGN,
301301
},
302-
abi: Memory {
302+
backend_repr: Memory {
303303
sized: true,
304304
},
305305
fields: Arbitrary {

‎tests/ui/repr/repr-c-dead-variants.x86_64-unknown-linux-gnu.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: layout_of(Univariant) = Layout {
44
abi: Align(4 bytes),
55
pref: $SOME_ALIGN,
66
},
7-
abi: Scalar(
7+
backend_repr: Scalar(
88
Initialized {
99
value: Int(
1010
I32,
@@ -49,7 +49,7 @@ error: layout_of(Univariant) = Layout {
4949
abi: Align(4 bytes),
5050
pref: $SOME_ALIGN,
5151
},
52-
abi: Scalar(
52+
backend_repr: Scalar(
5353
Initialized {
5454
value: Int(
5555
I32,
@@ -92,7 +92,7 @@ error: layout_of(TwoVariants) = Layout {
9292
abi: Align(4 bytes),
9393
pref: $SOME_ALIGN,
9494
},
95-
abi: ScalarPair(
95+
backend_repr: ScalarPair(
9696
Initialized {
9797
value: Int(
9898
I32,
@@ -143,7 +143,7 @@ error: layout_of(TwoVariants) = Layout {
143143
abi: Align(4 bytes),
144144
pref: $SOME_ALIGN,
145145
},
146-
abi: ScalarPair(
146+
backend_repr: ScalarPair(
147147
Initialized {
148148
value: Int(
149149
I32,
@@ -181,7 +181,7 @@ error: layout_of(TwoVariants) = Layout {
181181
abi: Align(4 bytes),
182182
pref: $SOME_ALIGN,
183183
},
184-
abi: ScalarPair(
184+
backend_repr: ScalarPair(
185185
Initialized {
186186
value: Int(
187187
I32,
@@ -230,7 +230,7 @@ error: layout_of(DeadBranchHasOtherField) = Layout {
230230
abi: Align(8 bytes),
231231
pref: $SOME_ALIGN,
232232
},
233-
abi: Memory {
233+
backend_repr: Memory {
234234
sized: true,
235235
},
236236
fields: Arbitrary {
@@ -269,7 +269,7 @@ error: layout_of(DeadBranchHasOtherField) = Layout {
269269
abi: Align(8 bytes),
270270
pref: $SOME_ALIGN,
271271
},
272-
abi: Memory {
272+
backend_repr: Memory {
273273
sized: true,
274274
},
275275
fields: Arbitrary {
@@ -299,7 +299,7 @@ error: layout_of(DeadBranchHasOtherField) = Layout {
299299
abi: Align(8 bytes),
300300
pref: $SOME_ALIGN,
301301
},
302-
abi: Memory {
302+
backend_repr: Memory {
303303
sized: true,
304304
},
305305
fields: Arbitrary {

‎tests/ui/repr/repr-c-int-dead-variants.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: layout_of(UnivariantU8) = Layout {
44
abi: Align(1 bytes),
55
pref: $SOME_ALIGN,
66
},
7-
abi: Scalar(
7+
backend_repr: Scalar(
88
Initialized {
99
value: Int(
1010
I8,
@@ -49,7 +49,7 @@ error: layout_of(UnivariantU8) = Layout {
4949
abi: Align(1 bytes),
5050
pref: $SOME_ALIGN,
5151
},
52-
abi: Scalar(
52+
backend_repr: Scalar(
5353
Initialized {
5454
value: Int(
5555
I8,
@@ -92,7 +92,7 @@ error: layout_of(TwoVariantsU8) = Layout {
9292
abi: Align(1 bytes),
9393
pref: $SOME_ALIGN,
9494
},
95-
abi: ScalarPair(
95+
backend_repr: ScalarPair(
9696
Initialized {
9797
value: Int(
9898
I8,
@@ -143,7 +143,7 @@ error: layout_of(TwoVariantsU8) = Layout {
143143
abi: Align(1 bytes),
144144
pref: $SOME_ALIGN,
145145
},
146-
abi: ScalarPair(
146+
backend_repr: ScalarPair(
147147
Initialized {
148148
value: Int(
149149
I8,
@@ -181,7 +181,7 @@ error: layout_of(TwoVariantsU8) = Layout {
181181
abi: Align(1 bytes),
182182
pref: $SOME_ALIGN,
183183
},
184-
abi: ScalarPair(
184+
backend_repr: ScalarPair(
185185
Initialized {
186186
value: Int(
187187
I8,
@@ -230,7 +230,7 @@ error: layout_of(DeadBranchHasOtherFieldU8) = Layout {
230230
abi: Align(8 bytes),
231231
pref: $SOME_ALIGN,
232232
},
233-
abi: Memory {
233+
backend_repr: Memory {
234234
sized: true,
235235
},
236236
fields: Arbitrary {
@@ -269,7 +269,7 @@ error: layout_of(DeadBranchHasOtherFieldU8) = Layout {
269269
abi: Align(8 bytes),
270270
pref: $SOME_ALIGN,
271271
},
272-
abi: Memory {
272+
backend_repr: Memory {
273273
sized: true,
274274
},
275275
fields: Arbitrary {
@@ -299,7 +299,7 @@ error: layout_of(DeadBranchHasOtherFieldU8) = Layout {
299299
abi: Align(8 bytes),
300300
pref: $SOME_ALIGN,
301301
},
302-
abi: Memory {
302+
backend_repr: Memory {
303303
sized: true,
304304
},
305305
fields: Arbitrary {

‎tests/ui/type/pattern_types/range_patterns.stderr

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: layout_of(NonZero<u32>) = Layout {
44
abi: Align(4 bytes),
55
pref: $SOME_ALIGN,
66
},
7-
abi: Scalar(
7+
backend_repr: Scalar(
88
Initialized {
99
value: Int(
1010
I32,
@@ -50,7 +50,7 @@ error: layout_of((u32) is 1..=) = Layout {
5050
abi: Align(4 bytes),
5151
pref: $SOME_ALIGN,
5252
},
53-
abi: Scalar(
53+
backend_repr: Scalar(
5454
Initialized {
5555
value: Int(
5656
I32,
@@ -89,7 +89,7 @@ error: layout_of(Option<(u32) is 1..=>) = Layout {
8989
abi: Align(4 bytes),
9090
pref: $SOME_ALIGN,
9191
},
92-
abi: Scalar(
92+
backend_repr: Scalar(
9393
Initialized {
9494
value: Int(
9595
I32,
@@ -129,7 +129,7 @@ error: layout_of(Option<(u32) is 1..=>) = Layout {
129129
abi: Align(1 bytes),
130130
pref: $SOME_ALIGN,
131131
},
132-
abi: Memory {
132+
backend_repr: Memory {
133133
sized: true,
134134
},
135135
fields: Arbitrary {
@@ -151,7 +151,7 @@ error: layout_of(Option<(u32) is 1..=>) = Layout {
151151
abi: Align(4 bytes),
152152
pref: $SOME_ALIGN,
153153
},
154-
abi: Scalar(
154+
backend_repr: Scalar(
155155
Initialized {
156156
value: Int(
157157
I32,
@@ -203,7 +203,7 @@ error: layout_of(Option<NonZero<u32>>) = Layout {
203203
abi: Align(4 bytes),
204204
pref: $SOME_ALIGN,
205205
},
206-
abi: Scalar(
206+
backend_repr: Scalar(
207207
Initialized {
208208
value: Int(
209209
I32,
@@ -243,7 +243,7 @@ error: layout_of(Option<NonZero<u32>>) = Layout {
243243
abi: Align(1 bytes),
244244
pref: $SOME_ALIGN,
245245
},
246-
abi: Memory {
246+
backend_repr: Memory {
247247
sized: true,
248248
},
249249
fields: Arbitrary {
@@ -265,7 +265,7 @@ error: layout_of(Option<NonZero<u32>>) = Layout {
265265
abi: Align(4 bytes),
266266
pref: $SOME_ALIGN,
267267
},
268-
abi: Scalar(
268+
backend_repr: Scalar(
269269
Initialized {
270270
value: Int(
271271
I32,
@@ -317,7 +317,7 @@ error: layout_of(NonZeroU32New) = Layout {
317317
abi: Align(4 bytes),
318318
pref: $SOME_ALIGN,
319319
},
320-
abi: Scalar(
320+
backend_repr: Scalar(
321321
Initialized {
322322
value: Int(
323323
I32,

0 commit comments

Comments
 (0)
Please sign in to comment.