diff options
author | Aleksey Kladov <[email protected]> | 2019-11-26 15:00:36 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-26 15:01:34 +0000 |
commit | 72d8e7e69abca9f27fb3ea386a6879324741e152 (patch) | |
tree | 55d2afdba12adaff0e7c329b6d0dfc79efb6db73 /crates/ra_hir/src/code_model.rs | |
parent | 6560e4ff2eae4e54384896d6ae100f1d2df20518 (diff) |
Use TraitId in TraitRef
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 9578c20b0..7b5d78543 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -741,7 +741,7 @@ impl Trait { | |||
741 | } | 741 | } |
742 | 742 | ||
743 | pub fn trait_ref(self, db: &impl HirDatabase) -> TraitRef { | 743 | pub fn trait_ref(self, db: &impl HirDatabase) -> TraitRef { |
744 | TraitRef::for_trait(db, self) | 744 | TraitRef::for_trait(db, self.id) |
745 | } | 745 | } |
746 | 746 | ||
747 | pub fn is_auto(self, db: &impl DefDatabase) -> bool { | 747 | pub fn is_auto(self, db: &impl DefDatabase) -> bool { |