aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/infer
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/ty/infer')
-rw-r--r--crates/ra_hir/src/ty/infer/path.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ty/infer/path.rs b/crates/ra_hir/src/ty/infer/path.rs
index 31ca675aa..f36a27929 100644
--- a/crates/ra_hir/src/ty/infer/path.rs
+++ b/crates/ra_hir/src/ty/infer/path.rs
@@ -94,13 +94,13 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
94 let is_before_last = remaining_segments.len() == 1; 94 let is_before_last = remaining_segments.len() == 1;
95 95
96 match (def, is_before_last) { 96 match (def, is_before_last) {
97 (TypeNs::Trait(trait_), true) => { 97 (TypeNs::TraitId(trait_), true) => {
98 let segment = 98 let segment =
99 remaining_segments.last().expect("there should be at least one segment here"); 99 remaining_segments.last().expect("there should be at least one segment here");
100 let trait_ref = TraitRef::from_resolved_path( 100 let trait_ref = TraitRef::from_resolved_path(
101 self.db, 101 self.db,
102 &self.resolver, 102 &self.resolver,
103 trait_, 103 trait_.into(),
104 resolved_segment, 104 resolved_segment,
105 None, 105 None,
106 ); 106 );