Add doc-comments for NaiveLayout
This commit is contained in:
parent
feb20f2fe7
commit
8e28729a82
3 changed files with 30 additions and 15 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue