diff options
| author | Andrew Cann <shum@canndrew.org> | 2016-08-03 13:59:27 +0800 |
|---|---|---|
| committer | Andrew Cann <shum@canndrew.org> | 2016-08-13 21:37:09 +0800 |
| commit | a4e6009bf07545e63b64a98f8fb9e85bbe5d74cc (patch) | |
| tree | 13b0006f1a1ff6c35054672cfcf28849d614bf27 /src/librustc_const_eval | |
| parent | a05560bebe897bf1fea2b57a2e9f131599784360 (diff) | |
| download | rust-a4e6009bf07545e63b64a98f8fb9e85bbe5d74cc.tar.gz rust-a4e6009bf07545e63b64a98f8fb9e85bbe5d74cc.zip | |
Minor fixups based on feedback
Diffstat (limited to 'src/librustc_const_eval')
| -rw-r--r-- | src/librustc_const_eval/check_match.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_const_eval/check_match.rs b/src/librustc_const_eval/check_match.rs index d80e152248f..4049a2b815d 100644 --- a/src/librustc_const_eval/check_match.rs +++ b/src/librustc_const_eval/check_match.rs @@ -218,7 +218,7 @@ fn check_expr(cx: &mut MatchCheckCtxt, ex: &hir::Expr) { if !pat_ty.is_uninhabited(cx.tcx) { // We know the type is inhabited, so this must be wrong let mut err = struct_span_err!(cx.tcx.sess, ex.span, E0002, - "non-exhaustive patterns: type {} is inhabited", + "non-exhaustive patterns: type {} is non-empty", pat_ty); span_help!(&mut err, ex.span, "Please ensure that all possible cases are being handled; \ |
