1
Fork 0

Auto merge of #118127 - RalfJung:unadjusted-abi, r=compiler-errors

the unadjusted ABI needs to pass aggregates by-value

Fixes https://github.com/rust-lang/rust/issues/118124, a regression introduced in https://github.com/rust-lang/rust/pull/117500
This commit is contained in:
bors 2023-11-25 17:06:22 +00:00
commit 16087eeea8
3 changed files with 84 additions and 6 deletions

View file

@ -382,6 +382,7 @@ impl HomogeneousAggregate {
}
impl<'a, Ty> TyAndLayout<'a, Ty> {
/// Returns `true` if this is an aggregate type (including a ScalarPair!)
fn is_aggregate(&self) -> bool {
match self.abi {
Abi::Uninhabited | Abi::Scalar(_) | Abi::Vector { .. } => false,