1
Fork 0

Reduce diagram mess in 'match arms have incompatible types' error

This commit is contained in:
David Tolnay 2020-10-22 14:20:02 -07:00
parent f82adf5bdb
commit b0059500f6
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
4 changed files with 38 additions and 28 deletions

View file

@ -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(),