aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorice1000 <[email protected]>2019-12-05 13:37:39 +0000
committerice1000 <[email protected]>2019-12-05 13:37:39 +0000
commitd15f300268fa955f8e9c04d51ca1dc528766f742 (patch)
tree25e6c7005e04c3a63344f23a003614409cfda4c9
parent006a583381ab66f229c4d49531cb50687343eea3 (diff)
Publicize `file_id` to make `test_db` compile
-rw-r--r--crates/ra_hir_def/src/nameres.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs
index 98bab1bfe..bd237a7b3 100644
--- a/crates/ra_hir_def/src/nameres.rs
+++ b/crates/ra_hir_def/src/nameres.rs
@@ -139,7 +139,7 @@ impl ModuleOrigin {
139 } 139 }
140 } 140 }
141 141
142 pub(crate) fn file_id(&self) -> Option<FileId> { 142 pub fn file_id(&self) -> Option<FileId> {
143 match self { 143 match self {
144 ModuleOrigin::File { definition, .. } | ModuleOrigin::CrateRoot { definition } => { 144 ModuleOrigin::File { definition, .. } | ModuleOrigin::CrateRoot { definition } => {
145 Some(*definition) 145 Some(*definition)