Reduce diagram mess in 'match arms have incompatible types' error
This commit is contained in:
parent
f82adf5bdb
commit
b0059500f6
4 changed files with 38 additions and 28 deletions
|
@ -201,6 +201,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
expr.span,
|
||||
ObligationCauseCode::MatchExpressionArm(box MatchExpressionArmCause {
|
||||
arm_span,
|
||||
scrut_span: scrut.span,
|
||||
semi_span,
|
||||
source: match_src,
|
||||
prior_arms: other_arms.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue