Skip to content

Commit

Permalink
Adjust LayoutData::uninhabited doc comment.
Browse files Browse the repository at this point in the history
Co-authored-by: Jubilee <workingjubilee@gmail.com>
  • Loading branch information
zachs18 and workingjubilee authored Feb 18, 2025
1 parent bdc321b commit 85fe2b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_abi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1695,8 +1695,8 @@ pub struct LayoutData<FieldIdx: Idx, VariantIdx: Idx> {
pub largest_niche: Option<Niche>,
/// Is this type known to be uninhabted?
///
/// This is separate from BackendRepr, because an uninhabited return type may require special
/// consideration based on its size or other attributes.
/// This is separate from BackendRepr because uninhabited return types can affect ABI,
/// especially in the case of by-pointer struct returns, which allocate stack even when unused.
pub uninhabited: bool,

pub align: AbiAndPrefAlign,
Expand Down

0 comments on commit 85fe2b1

Please sign in to comment.