diff options
Diffstat (limited to 'crates/ra_hir/src/ty/infer')
-rw-r--r-- | crates/ra_hir/src/ty/infer/path.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/infer/path.rs b/crates/ra_hir/src/ty/infer/path.rs index 885588174..0cde77265 100644 --- a/crates/ra_hir/src/ty/infer/path.rs +++ b/crates/ra_hir/src/ty/infer/path.rs | |||
@@ -124,6 +124,9 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> { | |||
124 | return None; | 124 | return None; |
125 | } | 125 | } |
126 | 126 | ||
127 | let ty = self.insert_type_vars(ty); | ||
128 | let ty = self.normalize_associated_types_in(ty); | ||
129 | |||
127 | let segment = | 130 | let segment = |
128 | remaining_segments.last().expect("there should be at least one segment here"); | 131 | remaining_segments.last().expect("there should be at least one segment here"); |
129 | 132 | ||