aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-02 09:49:09 +0000
committerAleksey Kladov <[email protected]>2019-01-02 09:49:47 +0000
commit4fe0ec5497cdbd7910b0197d254c2b2356fe1874 (patch)
treeeb95c4664ed21b46c854d503b9ac577320c9faac /crates/ra_hir/src
parentdb8d29320855d68ee9af04ceeb7d1aceda8e63b7 (diff)
rename
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r--crates/ra_hir/src/db.rs2
-rw-r--r--crates/ra_hir/src/ids.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs
index 8259bd699..73a4cdc5c 100644
--- a/crates/ra_hir/src/db.rs
+++ b/crates/ra_hir/src/db.rs
@@ -23,7 +23,7 @@ pub trait HirDatabase: SyntaxDatabase
23{ 23{
24 fn hir_source_file(file_id: HirFileId) -> SourceFileNode { 24 fn hir_source_file(file_id: HirFileId) -> SourceFileNode {
25 type HirSourceFileQuery; 25 type HirSourceFileQuery;
26 use fn HirFileId::source_file_query; 26 use fn HirFileId::hir_source_file;
27 } 27 }
28 fn expand_macro_invocation(invoc: MacroCallId) -> Option<Arc<MacroExpansion>> { 28 fn expand_macro_invocation(invoc: MacroCallId) -> Option<Arc<MacroExpansion>> {
29 type ExpandMacroCallQuery; 29 type ExpandMacroCallQuery;
diff --git a/crates/ra_hir/src/ids.rs b/crates/ra_hir/src/ids.rs
index aa6b2d2aa..3504317ed 100644
--- a/crates/ra_hir/src/ids.rs
+++ b/crates/ra_hir/src/ids.rs
@@ -45,7 +45,7 @@ impl HirFileId {
45 HirFileIdRepr::Macro(_r) => panic!("macro generated file: {:?}", self), 45 HirFileIdRepr::Macro(_r) => panic!("macro generated file: {:?}", self),
46 } 46 }
47 } 47 }
48 pub(crate) fn source_file_query(db: &impl HirDatabase, file_id: HirFileId) -> SourceFileNode { 48 pub(crate) fn hir_source_file(db: &impl HirDatabase, file_id: HirFileId) -> SourceFileNode {
49 match file_id.0 { 49 match file_id.0 {
50 HirFileIdRepr::File(file_id) => db.source_file(file_id), 50 HirFileIdRepr::File(file_id) => db.source_file(file_id),
51 HirFileIdRepr::Macro(m) => { 51 HirFileIdRepr::Macro(m) => {