mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Move hir_trait_id to extension trait
This commit is contained in:
parent
86feac18e8
commit
6777a4975d
11 changed files with 27 additions and 19 deletions
|
@ -260,3 +260,13 @@ impl ProjectionTyExt for ProjectionTy {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub trait TraitRefExt {
|
||||
fn hir_trait_id(&self) -> TraitId;
|
||||
}
|
||||
|
||||
impl TraitRefExt for TraitRef {
|
||||
fn hir_trait_id(&self) -> TraitId {
|
||||
from_chalk_trait_id(self.trait_id)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue