about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorJubilee <workingjubilee@gmail.com>2025-03-04 19:37:00 -0800
committerGitHub <noreply@github.com>2025-03-04 19:37:00 -0800
commit99efb4204dfdccb38355334f8d12db1122fb0c16 (patch)
tree8f8de67b4f9891edc8e3bd9df38e282325c2d0e1 /compiler/rustc_resolve/src
parent0bb2f95c26ae5dac7d6b487d08e8aae6a0d9932f (diff)
parent0ad48b47e65b414c5a47c0955e0ec582c01a61ad (diff)
downloadrust-99efb4204dfdccb38355334f8d12db1122fb0c16.tar.gz
rust-99efb4204dfdccb38355334f8d12db1122fb0c16.zip
Rollup merge of #137912 - compiler-errors:no-missing-lifetime-recovery, r=oli-obk
Do not recover missing lifetime with random in-scope lifetime

Suppresses a ton of stray errors, since this recovery doesn't really make sense anymore now that we have a dedicated `ReError` kind.

r? oli-obk or reassign
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/late/diagnostics.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_resolve/src/late/diagnostics.rs b/compiler/rustc_resolve/src/late/diagnostics.rs
index 0e14e7671b1..42be92c0f8f 100644
--- a/compiler/rustc_resolve/src/late/diagnostics.rs
+++ b/compiler/rustc_resolve/src/late/diagnostics.rs
@@ -3515,12 +3515,6 @@ impl<'ast, 'ra: 'ast, 'tcx> LateResolutionVisitor<'_, 'ast, 'ra, 'tcx> {
                         }
                     }
                 }
-
-                // Record as using the suggested resolution.
-                let (_, (_, res)) = in_scope_lifetimes[0];
-                for &lt in &lifetime_refs {
-                    self.r.lifetimes_res_map.insert(lt.id, res);
-                }
             }
             _ => {
                 let lifetime_spans: Vec<_> =