Stop using the whole match expr span for an arm's obligation span

This commit is contained in:
Michael Goulet
2024-10-27 22:35:17 +00:00
parent 5f5c243ca0
commit 2507e83d7b
5 changed files with 18 additions and 21 deletions

View File

@@ -519,6 +519,8 @@ pub struct MatchExpressionArmCause<'tcx> {
pub prior_arm_span: Span,
pub scrut_span: Span,
pub source: hir::MatchSource,
// Span of the *whole* match expr
pub expr_span: Span,
pub prior_non_diverging_arms: Vec<Span>,
// Is the expectation of this match expression an RPIT?
pub tail_defines_return_position_impl_trait: Option<LocalDefId>,