diff options
| author | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2023-06-11 17:05:26 -0400 |
|---|---|---|
| committer | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2023-07-10 19:19:40 -0400 |
| commit | 7e933b4e26947b04da70589110dacbdb2461e27d (patch) | |
| tree | 63b501c66626cdf9b1853eaa27e4c5159083fa46 /compiler/rustc_ty_utils | |
| parent | 2591c30eaf30425812f42beb47bd2615a533e961 (diff) | |
| download | rust-7e933b4e26947b04da70589110dacbdb2461e27d.tar.gz rust-7e933b4e26947b04da70589110dacbdb2461e27d.zip | |
repr(align) <= 4 should still be byval
Diffstat (limited to 'compiler/rustc_ty_utils')
| -rw-r--r-- | compiler/rustc_ty_utils/src/layout.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_ty_utils/src/layout.rs b/compiler/rustc_ty_utils/src/layout.rs index f693263ac95..4fbc6b9400f 100644 --- a/compiler/rustc_ty_utils/src/layout.rs +++ b/compiler/rustc_ty_utils/src/layout.rs @@ -258,7 +258,7 @@ fn layout_of_uncached<'tcx>( largest_niche, align: element.align, size, - has_repr_align: false, + repr_align: None, }) } ty::Slice(element) => { @@ -270,7 +270,7 @@ fn layout_of_uncached<'tcx>( largest_niche: None, align: element.align, size: Size::ZERO, - has_repr_align: false, + repr_align: None, }) } ty::Str => tcx.mk_layout(LayoutS { @@ -280,7 +280,7 @@ fn layout_of_uncached<'tcx>( largest_niche: None, align: dl.i8_align, size: Size::ZERO, - has_repr_align: false, + repr_align: None, }), // Odd unit types. @@ -434,7 +434,7 @@ fn layout_of_uncached<'tcx>( largest_niche: e_ly.largest_niche, size, align, - has_repr_align: false, + repr_align: None, }) } @@ -883,7 +883,7 @@ fn generator_layout<'tcx>( largest_niche: prefix.largest_niche, size, align, - has_repr_align: false, + repr_align: None, }); debug!("generator layout ({:?}): {:#?}", ty, layout); Ok(layout) |
