Lengthen the span label to include match and expr for E0004
This commit is contained in:
parent
6153bbbe38
commit
06133c50f7
1 changed files with 6 additions and 1 deletions
|
|
@ -235,7 +235,12 @@ fn check_expr(cx: &mut MatchCheckCtxt, ex: &hir::Expr) {
|
|||
.flat_map(|arm| &arm.0)
|
||||
.map(|pat| vec![wrap_pat(cx, &pat)])
|
||||
.collect();
|
||||
check_exhaustive(cx, ex.span, &matrix, source);
|
||||
let match_span = Span {
|
||||
lo: ex.span.lo,
|
||||
hi: scrut.span.hi,
|
||||
expn_id: ex.span.expn_id
|
||||
};
|
||||
check_exhaustive(cx, match_span, &matrix, source);
|
||||
},
|
||||
_ => ()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue