aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/infer/path.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-11-21 09:21:46 +0000
committerAleksey Kladov <[email protected]>2019-11-21 10:25:03 +0000
commit0102fb41337ac0442e689d410bb424d215e9a7bd (patch)
treec77bf501427adc77c0fc92fe75fd9f314087b120 /crates/ra_hir/src/ty/infer/path.rs
parent612a72fc4ea4376920f2a7da7b3c334227c1716c (diff)
Decouple Resolver
Diffstat (limited to 'crates/ra_hir/src/ty/infer/path.rs')
-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 );