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
This commit is contained in:
commit
99efb4204d
20 changed files with 36 additions and 180 deletions
|
@ -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<_> =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue