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