diff options
author | Jonas Schievink <[email protected]> | 2021-01-22 17:09:55 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-01-22 17:09:55 +0000 |
commit | 3de8f57c51192fa8e57713a3580c2bcc6907a194 (patch) | |
tree | f062bb33b2cfe9983605d6957eb56ddc21af2e93 /crates/hir_ty/src/test_db.rs | |
parent | e73cc8b4abed6e6f5d801d0032070fa9fc662ec3 (diff) |
Make `ModuleId`'s `krate` field private
Diffstat (limited to 'crates/hir_ty/src/test_db.rs')
-rw-r--r-- | crates/hir_ty/src/test_db.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/test_db.rs b/crates/hir_ty/src/test_db.rs index 3bbcbc242..09696fcf4 100644 --- a/crates/hir_ty/src/test_db.rs +++ b/crates/hir_ty/src/test_db.rs | |||
@@ -83,7 +83,7 @@ impl TestDB { | |||
83 | let crate_def_map = self.crate_def_map(krate); | 83 | let crate_def_map = self.crate_def_map(krate); |
84 | for (local_id, data) in crate_def_map.modules() { | 84 | for (local_id, data) in crate_def_map.modules() { |
85 | if data.origin.file_id() == Some(file_id) { | 85 | if data.origin.file_id() == Some(file_id) { |
86 | return ModuleId { krate, local_id }; | 86 | return ModuleId::top_level(krate, local_id); |
87 | } | 87 | } |
88 | } | 88 | } |
89 | } | 89 | } |