aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ids.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/ids.rs')
-rw-r--r--crates/ra_hir/src/ids.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ids.rs b/crates/ra_hir/src/ids.rs
index 6d59ef659..a09dee8b1 100644
--- a/crates/ra_hir/src/ids.rs
+++ b/crates/ra_hir/src/ids.rs
@@ -31,12 +31,12 @@ pub struct HirFileId(HirFileIdRepr);
31impl HirFileId { 31impl HirFileId {
32 /// For macro-expansion files, returns the file original source file the 32 /// For macro-expansion files, returns the file original source file the
33 /// expansionoriginated from. 33 /// expansionoriginated from.
34 pub(crate) fn original_file_id(self, db: &impl HirDatabase) -> FileId { 34 pub(crate) fn original_file(self, db: &impl HirDatabase) -> FileId {
35 match self.0 { 35 match self.0 {
36 HirFileIdRepr::File(file_id) => file_id, 36 HirFileIdRepr::File(file_id) => file_id,
37 HirFileIdRepr::Macro(macro_call_id) => { 37 HirFileIdRepr::Macro(macro_call_id) => {
38 let loc = macro_call_id.loc(db); 38 let loc = macro_call_id.loc(db);
39 loc.source_item_id.file_id.original_file_id(db) 39 loc.source_item_id.file_id.original_file(db)
40 } 40 }
41 } 41 }
42 } 42 }