1
Fork 0

Skip recording resolution for duplicated generic params.

This commit is contained in:
Camille GILLOT 2022-12-03 22:40:30 +00:00
parent cab4fd678c
commit b1514108e2
4 changed files with 18 additions and 3 deletions

View file

@ -2360,8 +2360,8 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
if let GenericParamKind::Lifetime = param.kind {
// Record lifetime res, so lowering knows there is something fishy.
self.record_lifetime_param(param.id, LifetimeRes::Error);
continue;
}
continue;
}
Entry::Vacant(entry) => {
entry.insert(param.ident.span);