about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates
diff options
context:
space:
mode:
authorJake <jake@jake.lol>2024-09-16 15:53:08 -0700
committerJake <jake@jake.lol>2024-09-16 15:53:08 -0700
commite4257122988a77675aa03dfe2d401f0d51c7c64c (patch)
tree17e634179617f3105ec2d558b84f14d4fc5238ef /src/tools/rust-analyzer/crates
parentb9be0f2cb6024d5e4e65943d551ed5c5aa7dbd89 (diff)
downloadrust-e4257122988a77675aa03dfe2d401f0d51c7c64c.tar.gz
rust-e4257122988a77675aa03dfe2d401f0d51c7c64c.zip
fix: fix ambigious package name in flycheck
Diffstat (limited to 'src/tools/rust-analyzer/crates')
-rw-r--r--src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs
index e8d1a7e4df6..49b1ba32a79 100644
--- a/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs
+++ b/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs
@@ -357,7 +357,7 @@ fn run_flycheck(state: &mut GlobalState, vfs_path: VfsPath) -> bool {
                             .targets
                             .iter()
                             .any(|&it| crate_root_paths.contains(&cargo[it].root.as_path()));
-                        has_target_with_root.then(|| cargo[pkg].name.clone())
+                        has_target_with_root.then(|| cargo.package_flag(&cargo[pkg]))
                     }),
                     project_model::ProjectWorkspaceKind::Json(project) => {
                         if !project.crates().any(|(_, krate)| {