Skip to content

Commit 3f718d8

Browse files
committed
Update check to reflect that non-ZST uninhabited types should not be PassMode::Ignore.
1 parent 6ff9b16 commit 3f718d8

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_ty_utils/src

1 file changed

+1
-1
lines changed

compiler/rustc_ty_utils/src/abi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ fn fn_abi_sanity_check<'tcx>(
464464

465465
match &arg.mode {
466466
PassMode::Ignore => {
467-
assert!(arg.layout.is_zst() || arg.layout.is_uninhabited());
467+
assert!(arg.layout.is_zst());
468468
}
469469
PassMode::Direct(_) => {
470470
// Here the Rust type is used to determine the actual ABI, so we have to be very

0 commit comments

Comments
 (0)