mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Make assoc_resolutions always have a Substitution
This commit is contained in:
parent
a3ea20a142
commit
d3cb032f7e
4 changed files with 16 additions and 26 deletions
|
@ -502,11 +502,7 @@ impl SourceAnalyzer {
|
|||
}
|
||||
}
|
||||
AssocItemId::ConstId(const_id) => {
|
||||
if let Some(subs) = subs {
|
||||
self.resolve_impl_const_or_trait_def(db, const_id, subs).into()
|
||||
} else {
|
||||
assoc
|
||||
}
|
||||
self.resolve_impl_const_or_trait_def(db, const_id, subs).into()
|
||||
}
|
||||
_ => assoc,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue