mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Update check to reflect that non-ZST uninhabited types should not be PassMode::Ignore.
This commit is contained in:
parent
c33fb5ae85
commit
bcfde13d51
@ -464,7 +464,7 @@ fn fn_abi_sanity_check<'tcx>(
|
||||
|
||||
match &arg.mode {
|
||||
PassMode::Ignore => {
|
||||
assert!(arg.layout.is_zst() || arg.layout.is_uninhabited());
|
||||
assert!(arg.layout.is_zst());
|
||||
}
|
||||
PassMode::Direct(_) => {
|
||||
// Here the Rust type is used to determine the actual ABI, so we have to be very
|
||||
|
Loading…
Reference in New Issue
Block a user