Changing label to "this is an..."

This commit is contained in:
saml 2016-08-04 11:22:02 -04:00
parent eeda69fcca
commit 034e659411
2 changed files with 5 additions and 5 deletions

View file

@ -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) {