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>(
1537
1537
( _, true , true ) => cx. tcx . types . err ,
1538
1538
// Treat all non-visible fields as `TyErr`. They can't appear in any
1539
1539
// 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.
1541
1542
( false , ..) => cx. tcx . types . err ,
1542
1543
( true , ..) => {
1543
1544
let ty = field. ty ( cx. tcx , substs) ;
1544
1545
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.
1547
1548
ty:: Array ( _, len)
1548
1549
if len. try_eval_usize ( cx. tcx , cx. param_env ) . is_none ( ) =>
1549
1550
{
You can’t perform that action at this time.
0 commit comments