diff options
Diffstat (limited to 'crates/ra_hir/src/ty/infer.rs')
-rw-r--r-- | crates/ra_hir/src/ty/infer.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ra_hir/src/ty/infer.rs b/crates/ra_hir/src/ty/infer.rs index 9e5d42509..a69f04ff1 100644 --- a/crates/ra_hir/src/ty/infer.rs +++ b/crates/ra_hir/src/ty/infer.rs | |||
@@ -559,9 +559,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> { | |||
559 | match resolver.resolve_path_in_type_ns_fully(self.db, &path) { | 559 | match resolver.resolve_path_in_type_ns_fully(self.db, &path) { |
560 | Some(TypeNs::Adt(Adt::Struct(it))) => it.into(), | 560 | Some(TypeNs::Adt(Adt::Struct(it))) => it.into(), |
561 | Some(TypeNs::Adt(Adt::Union(it))) => it.into(), | 561 | Some(TypeNs::Adt(Adt::Union(it))) => it.into(), |
562 | Some(TypeNs::AdtSelfType(Adt::Struct(it))) => it.into(), | 562 | Some(TypeNs::AdtSelfType(adt)) => adt.into(), |
563 | Some(TypeNs::AdtSelfType(Adt::Union(it))) => it.into(), | ||
564 | Some(TypeNs::AdtSelfType(Adt::Enum(it))) => it.into(), | ||
565 | Some(TypeNs::EnumVariant(it)) => it.into(), | 563 | Some(TypeNs::EnumVariant(it)) => it.into(), |
566 | Some(TypeNs::TypeAlias(it)) => it.into(), | 564 | Some(TypeNs::TypeAlias(it)) => it.into(), |
567 | 565 | ||