@@ -449,7 +449,7 @@ impl<'a, 'tcx> LayoutCx<'tcx, TyCtxt<'a, 'tcx, 'tcx>> {
449449 }
450450 }
451451
452- if sized && fields. iter ( ) . any ( |f| f. abi == Abi :: Uninhabited ) {
452+ if sized && fields. iter ( ) . any ( |f| f. abi . is_uninhabited ( ) ) {
453453 abi = Abi :: Uninhabited ;
454454 }
455455
@@ -724,7 +724,7 @@ impl<'a, 'tcx> LayoutCx<'tcx, TyCtxt<'a, 'tcx, 'tcx>> {
724724 // See issue #49298 for more details on the need to leave space
725725 // for non-ZST uninhabited data (mostly partial initialization).
726726 let absent = |fields : & [ TyLayout < ' _ > ] | {
727- let uninhabited = fields. iter ( ) . any ( |f| f. abi == Abi :: Uninhabited ) ;
727+ let uninhabited = fields. iter ( ) . any ( |f| f. abi . is_uninhabited ( ) ) ;
728728 let is_zst = fields. iter ( ) . all ( |f| f. is_zst ( ) ) ;
729729 uninhabited && is_zst
730730 } ;
@@ -872,7 +872,7 @@ impl<'a, 'tcx> LayoutCx<'tcx, TyCtxt<'a, 'tcx, 'tcx>> {
872872 _ => Abi :: Aggregate { sized : true } ,
873873 } ;
874874
875- if st. iter ( ) . all ( |v| v. abi == Abi :: Uninhabited ) {
875+ if st. iter ( ) . all ( |v| v. abi . is_uninhabited ( ) ) {
876876 abi = Abi :: Uninhabited ;
877877 }
878878
@@ -900,7 +900,7 @@ impl<'a, 'tcx> LayoutCx<'tcx, TyCtxt<'a, 'tcx, 'tcx>> {
900900 let discr_type = def. repr . discr_type ( ) ;
901901 let bits = Integer :: from_attr ( tcx, discr_type) . size ( ) . bits ( ) ;
902902 for ( i, discr) in def. discriminants ( tcx) . enumerate ( ) {
903- if variants[ i] . iter ( ) . any ( |f| f. abi == Abi :: Uninhabited ) {
903+ if variants[ i] . iter ( ) . any ( |f| f. abi . is_uninhabited ( ) ) {
904904 continue ;
905905 }
906906 let mut x = discr. val as i128 ;
@@ -1096,7 +1096,7 @@ impl<'a, 'tcx> LayoutCx<'tcx, TyCtxt<'a, 'tcx, 'tcx>> {
10961096 }
10971097 }
10981098
1099- if layout_variants. iter ( ) . all ( |v| v. abi == Abi :: Uninhabited ) {
1099+ if layout_variants. iter ( ) . all ( |v| v. abi . is_uninhabited ( ) ) {
11001100 abi = Abi :: Uninhabited ;
11011101 }
11021102
0 commit comments