diff options
| author | Michael Goulet <michael@errs.io> | 2025-03-03 05:14:52 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-03-03 05:57:55 +0000 |
| commit | 0ad48b47e65b414c5a47c0955e0ec582c01a61ad (patch) | |
| tree | 57e60afe932161cb53a3aa5a5faeeb31facf7245 /compiler/rustc_resolve/src/late/diagnostics.rs | |
| parent | daf59857d6d2b87af4b846316bf1561a6083ed51 (diff) | |
| download | rust-0ad48b47e65b414c5a47c0955e0ec582c01a61ad.tar.gz rust-0ad48b47e65b414c5a47c0955e0ec582c01a61ad.zip | |
Do not recover missing lifetime with random in-scope lifetime
Diffstat (limited to 'compiler/rustc_resolve/src/late/diagnostics.rs')
| -rw-r--r-- | compiler/rustc_resolve/src/late/diagnostics.rs | 6 |
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 < in &lifetime_refs { - self.r.lifetimes_res_map.insert(lt.id, res); - } } _ => { let lifetime_spans: Vec<_> = |
