diff options
Diffstat (limited to 'crates/ra_hir')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 5a3e24e9e..9488521a9 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -29,10 +29,7 @@ use ra_syntax::{ast, AstNode, SyntaxNode}; | |||
29 | use crate::{ | 29 | use crate::{ |
30 | db::{DefDatabase, HirDatabase}, | 30 | db::{DefDatabase, HirDatabase}, |
31 | ty::display::HirFormatter, | 31 | ty::display::HirFormatter, |
32 | ty::{ | 32 | ty::{self, InEnvironment, InferenceResult, TraitEnvironment, Ty, TyDefId, TypeCtor, TypeWalk}, |
33 | self, InEnvironment, InferenceResult, TraitEnvironment, TraitRef, Ty, TyDefId, TypeCtor, | ||
34 | TypeWalk, | ||
35 | }, | ||
36 | CallableDef, Either, HirDisplay, Name, Source, | 33 | CallableDef, Either, HirDisplay, Name, Source, |
37 | }; | 34 | }; |
38 | 35 | ||
@@ -731,10 +728,6 @@ impl Trait { | |||
731 | db.trait_data(self.id).items.iter().map(|(_name, it)| (*it).into()).collect() | 728 | db.trait_data(self.id).items.iter().map(|(_name, it)| (*it).into()).collect() |
732 | } | 729 | } |
733 | 730 | ||
734 | pub fn trait_ref(self, db: &impl HirDatabase) -> TraitRef { | ||
735 | TraitRef::for_trait(db, self.id) | ||
736 | } | ||
737 | |||
738 | pub fn is_auto(self, db: &impl DefDatabase) -> bool { | 731 | pub fn is_auto(self, db: &impl DefDatabase) -> bool { |
739 | db.trait_data(self.id).auto | 732 | db.trait_data(self.id).auto |
740 | } | 733 | } |