Skip to content

Commit 69985f0

Browse files
committed
Do not resolve elided lifetimes in path twice.
1 parent 38a4c2c commit 69985f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_resolve/src/late.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2655,9 +2655,9 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
26552655
if !matches!(source, PathSource::TraitItem(..)) {
26562656
// Avoid recording definition of `A::B` in `<T as A>::B::C`.
26572657
self.r.record_partial_res(id, partial_res);
2658+
self.resolve_elided_lifetimes_in_path(id, partial_res, path, source, finalize);
26582659
}
26592660

2660-
self.resolve_elided_lifetimes_in_path(id, partial_res, path, source, finalize);
26612661
partial_res
26622662
}
26632663

0 commit comments

Comments
 (0)