mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-11 20:58:54 +00:00
Fix tests
This commit is contained in:
parent
e12fe30351
commit
86441c5bb9
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ fn to_crate_graph(
|
|||
project_workspace.to_crate_graph(
|
||||
&mut {
|
||||
|path| {
|
||||
let len = file_map.len();
|
||||
let len = file_map.len() + 1;
|
||||
Some(*file_map.entry(path.to_path_buf()).or_insert(FileId::from_raw(len as u32)))
|
||||
}
|
||||
},
|
||||
|
|
|
@ -479,7 +479,7 @@
|
|||
},
|
||||
11: CrateData {
|
||||
root_file_id: FileId(
|
||||
12,
|
||||
11,
|
||||
),
|
||||
edition: Edition2018,
|
||||
version: None,
|
||||
|
|
Loading…
Reference in a new issue