about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorsaml <skynare@gmail.com>2016-08-04 11:22:02 -0400
committersaml <skynare@gmail.com>2016-08-04 11:22:02 -0400
commit034e6594112114897b243cb2cc2944c91c28d529 (patch)
treef4cce9533217c8dd3c2a4300ba2ec821e2e3d1d8 /src
parenteeda69fcca2c554bd60072476292b37fccb01a61 (diff)
downloadrust-034e6594112114897b243cb2cc2944c91c28d529.tar.gz
rust-034e6594112114897b243cb2cc2944c91c28d529.zip
Changing label to "this is an..."
Diffstat (limited to 'src')
-rw-r--r--src/librustc_const_eval/check_match.rs2
-rw-r--r--src/test/compile-fail/issue-31221.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/librustc_const_eval/check_match.rs b/src/librustc_const_eval/check_match.rs
index 6528525a610..d148d2a0885 100644
--- a/src/librustc_const_eval/check_match.rs
+++ b/src/librustc_const_eval/check_match.rs
@@ -335,7 +335,7 @@ fn check_arms(cx: &MatchCheckCtxt,
                         hir::MatchSource::Normal => {
                             let mut err = struct_span_err!(cx.tcx.sess, pat.span, E0001,
                                                            "unreachable pattern");
-                            err.span_label(pat.span, &format!("this is unreachable pattern"));
+                            err.span_label(pat.span, &format!("this is an unreachable pattern"));
                             // if we had a catchall pattern, hint at that
                             for row in &seen.0 {
                                 if pat_is_catchall(&cx.tcx.def_map.borrow(), row[0].0) {
diff --git a/src/test/compile-fail/issue-31221.rs b/src/test/compile-fail/issue-31221.rs
index 85eac907105..4997a6fee19 100644
--- a/src/test/compile-fail/issue-31221.rs
+++ b/src/test/compile-fail/issue-31221.rs
@@ -22,7 +22,7 @@ fn main() {
         //~^ NOTE this pattern matches any value
         Var2 => (),
         //~^ ERROR unreachable pattern
-        //~^^ NOTE this is unreachable pattern
+        //~^^ NOTE this is an unreachable pattern
     };
     match &s {
         &Var1 => (),
@@ -30,7 +30,7 @@ fn main() {
         //~^ NOTE this pattern matches any value
         &Var2 => (),
         //~^ ERROR unreachable pattern
-        //~^^ NOTE this is unreachable pattern
+        //~^^ NOTE this is an unreachable pattern
     };
     let t = (Var1, Var1);
     match t {
@@ -39,7 +39,7 @@ fn main() {
         //~^ NOTE this pattern matches any value
         anything => ()
         //~^ ERROR unreachable pattern
-        //~^^ NOTE this is unreachable pattern
+        //~^^ NOTE this is an unreachable pattern
     };
     // `_` need not emit a note, it is pretty obvious already.
     let t = (Var1, Var1);
@@ -48,6 +48,6 @@ fn main() {
         _ => (),
         anything => ()
         //~^ ERROR unreachable pattern
-        //~^^ NOTE this is unreachable pattern
+        //~^^ NOTE this is an unreachable pattern
     };
 }