File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/librustc_mir/hair/pattern Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1537,13 +1537,14 @@ fn constructor_sub_pattern_tys<'a, 'tcx>(
15371537 ( _, true , true ) => cx. tcx . types . err ,
15381538 // Treat all non-visible fields as `TyErr`. They can't appear in any
15391539 // other pattern from this match (because they are private), so their
1540- // type does not matter - but we don't want to know they are uninhabited.
1540+ // type does not matter - but we don't want to know they are
1541+ // uninhabited.
15411542 ( false , ..) => cx. tcx . types . err ,
15421543 ( true , ..) => {
15431544 let ty = field. ty ( cx. tcx , substs) ;
15441545 match ty. kind {
1545- // If the field type returned is an array of an unknown
1546- // size return an TyErr.
1546+ // If the field type returned is an array of an unknown size
1547+ // return an TyErr.
15471548 ty:: Array ( _, len)
15481549 if len. try_eval_usize ( cx. tcx , cx. param_env ) . is_none ( ) =>
15491550 {
You can’t perform that action at this time.
0 commit comments