diff options
| author | Michael Goulet <michael@errs.io> | 2024-10-27 22:35:17 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-10-27 22:48:03 +0000 |
| commit | 2507e83d7bb0dd9e7217b10b13afc61763dc1eca (patch) | |
| tree | 3dd9dc0fbdb4e6454fd2c404c521a497153ca933 /compiler/rustc_middle/src/traits/mod.rs | |
| parent | 5f5c243ca020e45cb6ee48a1f635a929eb611fd2 (diff) | |
| download | rust-2507e83d7bb0dd9e7217b10b13afc61763dc1eca.tar.gz rust-2507e83d7bb0dd9e7217b10b13afc61763dc1eca.zip | |
Stop using the whole match expr span for an arm's obligation span
Diffstat (limited to 'compiler/rustc_middle/src/traits/mod.rs')
| -rw-r--r-- | compiler/rustc_middle/src/traits/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/traits/mod.rs b/compiler/rustc_middle/src/traits/mod.rs index 8ee8b4c4823..7237a7014e8 100644 --- a/compiler/rustc_middle/src/traits/mod.rs +++ b/compiler/rustc_middle/src/traits/mod.rs @@ -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>, |
