diff options
Diffstat (limited to 'crates/hir_ty/src/infer/path.rs')
-rw-r--r-- | crates/hir_ty/src/infer/path.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_ty/src/infer/path.rs b/crates/hir_ty/src/infer/path.rs index 637341b53..89d78e781 100644 --- a/crates/hir_ty/src/infer/path.rs +++ b/crates/hir_ty/src/infer/path.rs | |||
@@ -142,7 +142,7 @@ impl<'a> InferenceContext<'a> { | |||
142 | remaining_segments_for_ty, | 142 | remaining_segments_for_ty, |
143 | true, | 143 | true, |
144 | ); | 144 | ); |
145 | if let TyKind::Unknown = ty.kind(&Interner) { | 145 | if let TyKind::Error = ty.kind(&Interner) { |
146 | return None; | 146 | return None; |
147 | } | 147 | } |
148 | 148 | ||
@@ -207,7 +207,7 @@ impl<'a> InferenceContext<'a> { | |||
207 | name: &Name, | 207 | name: &Name, |
208 | id: ExprOrPatId, | 208 | id: ExprOrPatId, |
209 | ) -> Option<(ValueNs, Option<Substitution>)> { | 209 | ) -> Option<(ValueNs, Option<Substitution>)> { |
210 | if let TyKind::Unknown = ty.kind(&Interner) { | 210 | if let TyKind::Error = ty.kind(&Interner) { |
211 | return None; | 211 | return None; |
212 | } | 212 | } |
213 | 213 | ||