1
Fork 0

Add doc-comments for NaiveLayout

This commit is contained in:
Moulins 2023-07-01 22:50:27 +02:00
parent feb20f2fe7
commit 8e28729a82
3 changed files with 30 additions and 15 deletions

View file

@ -244,7 +244,7 @@ fn naive_layout_of_uncached<'tcx>(
// Unions are always inhabited, and never scalar if `repr(C)`.
if !matches!(layout.abi, NaiveAbi::Scalar(_)) || repr.inhibit_enum_layout_opt() {
layout.abi = NaiveAbi::Any;
layout.abi = NaiveAbi::Sized;
}
if let Some(align) = repr.align {