]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_const_eval/check_match.rs
Minor fixups based on feedback
[rust.git] / src / librustc_const_eval / check_match.rs
index d80e152248fc020d8e61f954e24dc423ea85cf7d..4049a2b815d0209ceb5ed91cb7f718e347e2061a 100644 (file)
@@ -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; \