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

@ -343,6 +343,7 @@ static_assert_size!(ObligationCauseCode<'_>, 32);
#[derive(Clone, Debug, PartialEq, Eq, Hash, Lift)]
pub struct MatchExpressionArmCause<'tcx> {
pub arm_span: Span,
pub scrut_span: Span,
pub semi_span: Option<Span>,
pub source: hir::MatchSource,
pub prior_arms: Vec<Span>,