diff options
author | Aleksey Kladov <[email protected]> | 2019-01-02 09:49:09 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-02 09:49:47 +0000 |
commit | 4fe0ec5497cdbd7910b0197d254c2b2356fe1874 (patch) | |
tree | eb95c4664ed21b46c854d503b9ac577320c9faac /crates/ra_hir/src/ids.rs | |
parent | db8d29320855d68ee9af04ceeb7d1aceda8e63b7 (diff) |
rename
Diffstat (limited to 'crates/ra_hir/src/ids.rs')
-rw-r--r-- | crates/ra_hir/src/ids.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) => { |