From af35934fa50f4d69fab46b98746dcbaa72aee19f Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 27 Oct 2019 16:17:00 +0000 Subject: [PATCH] tidy --- src/librustc_mir/hair/pattern/_match.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/librustc_mir/hair/pattern/_match.rs b/src/librustc_mir/hair/pattern/_match.rs index 322ab115cda4..aeb581f0cba3 100644 --- a/src/librustc_mir/hair/pattern/_match.rs +++ b/src/librustc_mir/hair/pattern/_match.rs @@ -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() => {