From 71d996f34e2c9f73b16905dc3ae91a70358ee52f Mon Sep 17 00:00:00 2001 From: lucasholten Date: Wed, 1 Jan 2025 16:42:29 +0100 Subject: [PATCH] Fix tests --- src/tools/rust-analyzer/crates/project-model/src/tests.rs | 2 +- .../project-model/test_data/output/rust_project_cfg_groups.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/rust-analyzer/crates/project-model/src/tests.rs b/src/tools/rust-analyzer/crates/project-model/src/tests.rs index 73e4cb324a9ec..74d41436055a3 100644 --- a/src/tools/rust-analyzer/crates/project-model/src/tests.rs +++ b/src/tools/rust-analyzer/crates/project-model/src/tests.rs @@ -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))) } }, diff --git a/src/tools/rust-analyzer/crates/project-model/test_data/output/rust_project_cfg_groups.txt b/src/tools/rust-analyzer/crates/project-model/test_data/output/rust_project_cfg_groups.txt index 90f41a9c2fc8b..2026ab2b8c2fa 100644 --- a/src/tools/rust-analyzer/crates/project-model/test_data/output/rust_project_cfg_groups.txt +++ b/src/tools/rust-analyzer/crates/project-model/test_data/output/rust_project_cfg_groups.txt @@ -479,7 +479,7 @@ }, 11: CrateData { root_file_id: FileId( - 12, + 11, ), edition: Edition2018, version: None,