diff options
author | Aleksey Kladov <[email protected]> | 2019-11-22 15:51:53 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-22 15:51:53 +0000 |
commit | fe119fef2746bade402fb73dcba8cde49779654d (patch) | |
tree | 895e5bb04a4a632b4069bf66f8c7770cfa80a90d /crates/ra_hir/src/ty/infer.rs | |
parent | d4f4ae0dd88f0baf0065d612f41fea3d54af79fd (diff) |
Hide data from public API
Diffstat (limited to 'crates/ra_hir/src/ty/infer.rs')
-rw-r--r-- | crates/ra_hir/src/ty/infer.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_hir/src/ty/infer.rs b/crates/ra_hir/src/ty/infer.rs index 39976a359..471bdc387 100644 --- a/crates/ra_hir/src/ty/infer.rs +++ b/crates/ra_hir/src/ty/infer.rs | |||
@@ -69,10 +69,10 @@ pub fn infer_query(db: &impl HirDatabase, def: DefWithBody) -> Arc<InferenceResu | |||
69 | let resolver = DefWithBodyId::from(def).resolver(db); | 69 | let resolver = DefWithBodyId::from(def).resolver(db); |
70 | let mut ctx = InferenceContext::new(db, def, resolver); | 70 | let mut ctx = InferenceContext::new(db, def, resolver); |
71 | 71 | ||
72 | match def { | 72 | match &def { |
73 | DefWithBody::Const(ref c) => ctx.collect_const(&c.data(db)), | 73 | DefWithBody::Const(c) => ctx.collect_const(&db.const_data(c.id)), |
74 | DefWithBody::Function(ref f) => ctx.collect_fn(&db.function_data(f.id)), | 74 | DefWithBody::Function(f) => ctx.collect_fn(&db.function_data(f.id)), |
75 | DefWithBody::Static(ref s) => ctx.collect_const(&s.data(db)), | 75 | DefWithBody::Static(s) => ctx.collect_const(&db.static_data(s.id)), |
76 | } | 76 | } |
77 | 77 | ||
78 | ctx.infer_body(); | 78 | ctx.infer_body(); |