mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Make public DefMap fields private
This commit is contained in:
parent
de5aabd48b
commit
0587b99fde
10 changed files with 31 additions and 23 deletions
|
@ -75,7 +75,7 @@ impl ImportMap {
|
|||
|
||||
// We look only into modules that are public(ly reexported), starting with the crate root.
|
||||
let empty = ImportPath { segments: vec![] };
|
||||
let root = ModuleId { krate, local_id: def_map.root };
|
||||
let root = ModuleId { krate, local_id: def_map.root() };
|
||||
let mut worklist = vec![(root, empty)];
|
||||
while let Some((module, mod_path)) = worklist.pop() {
|
||||
let ext_def_map;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue