Adjust LayoutData::uninhabited doc comment.
Co-authored-by: Jubilee <workingjubilee@gmail.com>
This commit is contained in:
parent
58ebf6afdd
commit
6493cd8699
1 changed files with 2 additions and 2 deletions
|
@ -1696,8 +1696,8 @@ pub struct LayoutData<FieldIdx: Idx, VariantIdx: Idx> {
|
||||||
pub largest_niche: Option<Niche>,
|
pub largest_niche: Option<Niche>,
|
||||||
/// Is this type known to be uninhabted?
|
/// Is this type known to be uninhabted?
|
||||||
///
|
///
|
||||||
/// This is separate from BackendRepr, because an uninhabited return type may require special
|
/// This is separate from BackendRepr because uninhabited return types can affect ABI,
|
||||||
/// consideration based on its size or other attributes.
|
/// especially in the case of by-pointer struct returns, which allocate stack even when unused.
|
||||||
pub uninhabited: bool,
|
pub uninhabited: bool,
|
||||||
|
|
||||||
pub align: AbiAndPrefAlign,
|
pub align: AbiAndPrefAlign,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue