@@ -810,18 +810,19 @@ impl<'tcx> Constructor<'tcx> {
810
810
adt. is_enum ( ) || field. vis . is_accessible_from ( cx. module , cx. tcx ) ;
811
811
let is_uninhabited = cx. is_uninhabited ( field. ty ( cx. tcx , substs) ) ;
812
812
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`.
814
815
( _, 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
818
819
// uninhabited.
819
820
( false , ..) => cx. tcx . types . err ,
820
821
( true , ..) => {
821
822
let ty = field. ty ( cx. tcx , substs) ;
822
823
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.
825
826
ty:: Array ( _, len)
826
827
if len
827
828
. try_eval_usize ( cx. tcx , cx. param_env )
0 commit comments