compiler: Fully stabilize result_ffi_guarantees

This commit is contained in:
Jubilee Young 2024-09-20 08:59:42 -07:00
parent 8069f8d17a
commit fa18606b17
7 changed files with 33 additions and 424 deletions

View file

@ -741,10 +741,6 @@ pub(crate) fn repr_nullable_ptr<'tcx>(
[var_one, var_two] => match (&var_one.fields.raw[..], &var_two.fields.raw[..]) {
([], [field]) | ([field], []) => field.ty(tcx, args),
([field1], [field2]) => {
if !tcx.features().result_ffi_guarantees {
return None;
}
let ty1 = field1.ty(tcx, args);
let ty2 = field2.ty(tcx, args);