diff options
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index c5cf39ee1..a842dfed6 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -982,7 +982,7 @@ impl ImplBlock { | |||
982 | } | 982 | } |
983 | } | 983 | } |
984 | 984 | ||
985 | #[derive(Clone, PartialEq, Eq)] | 985 | #[derive(Clone, PartialEq, Eq, Debug)] |
986 | pub struct Type { | 986 | pub struct Type { |
987 | pub(crate) krate: CrateId, | 987 | pub(crate) krate: CrateId, |
988 | pub(crate) ty: InEnvironment<Ty>, | 988 | pub(crate) ty: InEnvironment<Ty>, |
@@ -1104,7 +1104,7 @@ impl Type { | |||
1104 | 1104 | ||
1105 | pub fn as_adt(&self) -> Option<Adt> { | 1105 | pub fn as_adt(&self) -> Option<Adt> { |
1106 | let (adt, _subst) = self.ty.value.as_adt()?; | 1106 | let (adt, _subst) = self.ty.value.as_adt()?; |
1107 | Some(adt) | 1107 | Some(adt.into()) |
1108 | } | 1108 | } |
1109 | 1109 | ||
1110 | fn derived(&self, ty: Ty) -> Type { | 1110 | fn derived(&self, ty: Ty) -> Type { |