aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) => {