diff options
author | Aleksey Kladov <[email protected]> | 2019-03-23 12:37:04 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-03-23 12:44:24 +0000 |
commit | 3f0cf6ebe1a42c3a38f3ab8a7b2e10110ed91ee1 (patch) | |
tree | 2b9ba6289fc865889775dab7c6b029faea7161ab /crates/ra_hir/src/code_model_impl/konst.rs | |
parent | 331220fee2c8c6d9f6e87c371ab101baace205dc (diff) |
rename persistent hir database -> def database
Diffstat (limited to 'crates/ra_hir/src/code_model_impl/konst.rs')
-rw-r--r-- | crates/ra_hir/src/code_model_impl/konst.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/code_model_impl/konst.rs b/crates/ra_hir/src/code_model_impl/konst.rs index 8b861a81f..db4e5ce5c 100644 --- a/crates/ra_hir/src/code_model_impl/konst.rs +++ b/crates/ra_hir/src/code_model_impl/konst.rs | |||
@@ -5,7 +5,7 @@ use ra_syntax::ast::{NameOwner, TypeAscriptionOwner}; | |||
5 | use crate::{ | 5 | use crate::{ |
6 | Name, AsName, Const, ConstSignature, Static, | 6 | Name, AsName, Const, ConstSignature, Static, |
7 | type_ref::{TypeRef}, | 7 | type_ref::{TypeRef}, |
8 | PersistentHirDatabase, | 8 | DefDatabase, |
9 | }; | 9 | }; |
10 | 10 | ||
11 | fn const_signature_for<N: NameOwner + TypeAscriptionOwner>(node: &N) -> Arc<ConstSignature> { | 11 | fn const_signature_for<N: NameOwner + TypeAscriptionOwner>(node: &N) -> Arc<ConstSignature> { |
@@ -17,7 +17,7 @@ fn const_signature_for<N: NameOwner + TypeAscriptionOwner>(node: &N) -> Arc<Cons | |||
17 | 17 | ||
18 | impl ConstSignature { | 18 | impl ConstSignature { |
19 | pub(crate) fn const_signature_query( | 19 | pub(crate) fn const_signature_query( |
20 | db: &impl PersistentHirDatabase, | 20 | db: &impl DefDatabase, |
21 | konst: Const, | 21 | konst: Const, |
22 | ) -> Arc<ConstSignature> { | 22 | ) -> Arc<ConstSignature> { |
23 | let (_, node) = konst.source(db); | 23 | let (_, node) = konst.source(db); |
@@ -25,7 +25,7 @@ impl ConstSignature { | |||
25 | } | 25 | } |
26 | 26 | ||
27 | pub(crate) fn static_signature_query( | 27 | pub(crate) fn static_signature_query( |
28 | db: &impl PersistentHirDatabase, | 28 | db: &impl DefDatabase, |
29 | konst: Static, | 29 | konst: Static, |
30 | ) -> Arc<ConstSignature> { | 30 | ) -> Arc<ConstSignature> { |
31 | let (_, node) = konst.source(db); | 31 | let (_, node) = konst.source(db); |