Skip to content

Commit 71d996f

Browse files
committed
Fix tests
1 parent 48d11df commit 71d996f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tools/rust-analyzer/crates/project-model/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ fn to_crate_graph(
140140
project_workspace.to_crate_graph(
141141
&mut {
142142
|path| {
143-
let len = file_map.len();
143+
let len = file_map.len() + 1;
144144
Some(*file_map.entry(path.to_path_buf()).or_insert(FileId::from_raw(len as u32)))
145145
}
146146
},

src/tools/rust-analyzer/crates/project-model/test_data/output/rust_project_cfg_groups.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@
479479
},
480480
11: CrateData {
481481
root_file_id: FileId(
482-
12,
482+
11,
483483
),
484484
edition: Edition2018,
485485
version: None,

0 commit comments

Comments
 (0)