]> git.lizzy.rs Git - rust.git/commitdiff
tidy
authorNadrieril <nadrieril@gmail.com>
Sun, 27 Oct 2019 16:17:00 +0000 (16:17 +0000)
committerNadrieril <nadrieril@gmail.com>
Sun, 27 Oct 2019 17:34:21 +0000 (17:34 +0000)
src/librustc_mir/hair/pattern/_match.rs

index 322ab115cda44a67987907f9f6167d2534f00fba..aeb581f0cba3d93daba829171e029ad18b9bd90b 100644 (file)
@@ -1537,13 +1537,14 @@ fn constructor_sub_pattern_tys<'a, 'tcx>(
                             (_, true, true) => cx.tcx.types.err,
                             // Treat all non-visible fields as `TyErr`. They can't appear in any
                             // other pattern from this match (because they are private), so their
-                            // type does not matter - but we don't want to know they are uninhabited.
+                            // type does not matter - but we don't want to know they are
+                            // uninhabited.
                             (false, ..) => cx.tcx.types.err,
                             (true, ..) => {
                                 let ty = field.ty(cx.tcx, substs);
                                 match ty.kind {
-                                    // If the field type returned is an array of an unknown
-                                    // size return an TyErr.
+                                    // If the field type returned is an array of an unknown size
+                                    // return an TyErr.
                                     ty::Array(_, len)
                                         if len.try_eval_usize(cx.tcx, cx.param_env).is_none() =>
                                     {