We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdc321b commit 85fe2b1Copy full SHA for 85fe2b1
compiler/rustc_abi/src/lib.rs
@@ -1695,8 +1695,8 @@ pub struct LayoutData<FieldIdx: Idx, VariantIdx: Idx> {
1695
pub largest_niche: Option<Niche>,
1696
/// Is this type known to be uninhabted?
1697
///
1698
- /// This is separate from BackendRepr, because an uninhabited return type may require special
1699
- /// 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.
1700
pub uninhabited: bool,
1701
1702
pub align: AbiAndPrefAlign,
0 commit comments