Rollup merge of #123774 - Lee-Janggun:master, r=lqd

Fix typo MaybeUnit -> MaybeUninit
This commit is contained in:
Matthias Krüger 2024-04-11 16:57:41 +02:00 committed by GitHub
commit 8c13ff768c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,7 +143,7 @@ fn check_asm_operand_type(
};
assert!(
ty.is_manually_drop(),
"expected first field of `MaybeUnit` to be `ManuallyDrop`"
"expected first field of `MaybeUninit` to be `ManuallyDrop`"
);
let fields = &ty.non_enum_variant().fields;
let ty = fields[FieldIdx::ZERO].ty(self.tcx, args);