@@ -810,18 +810,19 @@ impl<'tcx> Constructor<'tcx> {
810810 adt. is_enum ( ) || field. vis . is_accessible_from ( cx. module , cx. tcx ) ;
811811 let is_uninhabited = cx. is_uninhabited ( field. ty ( cx. tcx , substs) ) ;
812812 match ( is_visible, is_non_exhaustive, is_uninhabited) {
813- // Treat all uninhabited types in non-exhaustive variants as `TyErr`.
813+ // Treat all uninhabited types in non-exhaustive variants as
814+ // `TyErr`.
814815 ( _, true , true ) => cx. tcx . types . err ,
815- // Treat all non-visible fields as `TyErr`. They can't appear in any
816- // other pattern from this match (because they are private), so their
817- // type does not matter - but we don't want to know they are
816+ // Treat all non-visible fields as `TyErr`. They can't appear in
817+ // any other pattern from this match (because they are private), so
818+ // their type does not matter - but we don't want to know they are
818819 // uninhabited.
819820 ( false , ..) => cx. tcx . types . err ,
820821 ( true , ..) => {
821822 let ty = field. ty ( cx. tcx , substs) ;
822823 match ty. kind {
823- // If the field type returned is an array of an unknown size
824- // return an TyErr.
824+ // If the field type returned is an array of an unknown
825+ // size return an TyErr.
825826 ty:: Array ( _, len)
826827 if len
827828 . try_eval_usize ( cx. tcx , cx. param_env )
0 commit comments