mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
fix: Fix trait method completions not acknowledging Deref impls
This commit is contained in:
parent
191949eabe
commit
737d5088e5
5 changed files with 90 additions and 33 deletions
|
|
@ -241,7 +241,7 @@ pub type StaticLoc = AssocItemLoc<Static>;
|
|||
impl_intern!(StaticId, StaticLoc, intern_static, lookup_intern_static);
|
||||
impl_loc!(StaticLoc, id: Static, container: ItemContainerId);
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||
pub struct TraitId(salsa::InternId);
|
||||
pub type TraitLoc = ItemLoc<Trait>;
|
||||
impl_intern!(TraitId, TraitLoc, intern_trait, lookup_intern_trait);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue