mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 20:46:49 +00:00
Do not resolve elided lifetimes in path twice.
This commit is contained in:
parent
38a4c2cc44
commit
69985f0175
|
@ -2655,9 +2655,9 @@ fn smart_resolve_path_fragment(
|
|||
if !matches!(source, PathSource::TraitItem(..)) {
|
||||
// Avoid recording definition of `A::B` in `<T as A>::B::C`.
|
||||
self.r.record_partial_res(id, partial_res);
|
||||
self.resolve_elided_lifetimes_in_path(id, partial_res, path, source, finalize);
|
||||
}
|
||||
|
||||
self.resolve_elided_lifetimes_in_path(id, partial_res, path, source, finalize);
|
||||
partial_res
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue