@@ -432,7 +432,7 @@ impl<Cx: HasDataLayout> LayoutCalculator<Cx> {
432
432
align = align. min ( AbiAlign :: new ( pack) ) ;
433
433
}
434
434
// The unadjusted ABI alignment does not include repr(align), but does include repr(pack).
435
- // See documentation on `LayoutS ::unadjusted_abi_align`.
435
+ // See documentation on `LayoutData ::unadjusted_abi_align`.
436
436
let unadjusted_abi_align = align. abi ;
437
437
if let Some ( repr_align) = repr. align {
438
438
align = align. max ( AbiAlign :: new ( repr_align) ) ;
@@ -602,10 +602,10 @@ impl<Cx: HasDataLayout> LayoutCalculator<Cx> {
602
602
dont_niche_optimize_enum : bool ,
603
603
) -> LayoutCalculatorResult < FieldIdx , VariantIdx , F > {
604
604
// Until we've decided whether to use the tagged or
605
- // niche filling LayoutS , we don't want to intern the
605
+ // niche filling LayoutData , we don't want to intern the
606
606
// variant layouts, so we can't store them in the
607
- // overall LayoutS . Store the overall LayoutS
608
- // and the variant LayoutSs here until then.
607
+ // overall LayoutData . Store the overall LayoutData
608
+ // and the variant LayoutDatas here until then.
609
609
struct TmpLayout < FieldIdx : Idx , VariantIdx : Idx > {
610
610
layout : LayoutData < FieldIdx , VariantIdx > ,
611
611
variants : IndexVec < VariantIdx , LayoutData < FieldIdx , VariantIdx > > ,
@@ -1214,7 +1214,7 @@ impl<Cx: HasDataLayout> LayoutCalculator<Cx> {
1214
1214
1215
1215
match kind {
1216
1216
StructKind :: AlwaysSized | StructKind :: MaybeUnsized => {
1217
- // Currently `LayoutS ` only exposes a single niche so sorting is usually
1217
+ // Currently `LayoutData ` only exposes a single niche so sorting is usually
1218
1218
// sufficient to get one niche into the preferred position. If it ever
1219
1219
// supported multiple niches then a more advanced pick-and-pack approach could
1220
1220
// provide better results. But even for the single-niche cache it's not
@@ -1333,7 +1333,7 @@ impl<Cx: HasDataLayout> LayoutCalculator<Cx> {
1333
1333
}
1334
1334
1335
1335
// The unadjusted ABI alignment does not include repr(align), but does include repr(pack).
1336
- // See documentation on `LayoutS ::unadjusted_abi_align`.
1336
+ // See documentation on `LayoutData ::unadjusted_abi_align`.
1337
1337
let unadjusted_abi_align = align. abi ;
1338
1338
if let Some ( repr_align) = repr. align {
1339
1339
align = align. max ( AbiAlign :: new ( repr_align) ) ;
0 commit comments