diff options
| author | bors <bors@rust-lang.org> | 2024-09-24 10:03:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-24 10:03:41 +0000 |
| commit | 6ec41ab643bd99d6370dfdeb41d91fd8cd209bd5 (patch) | |
| tree | 85e49c454e01d1a7eace40b56f8657370a9372a6 /src | |
| parent | 622c701c0979d9397cb30cec851991ae164968e0 (diff) | |
| parent | e4257122988a77675aa03dfe2d401f0d51c7c64c (diff) | |
| download | rust-6ec41ab643bd99d6370dfdeb41d91fd8cd209bd5.tar.gz rust-6ec41ab643bd99d6370dfdeb41d91fd8cd209bd5.zip | |
Auto merge of #18123 - jhgg:fix-ambigius-package-cargo-check, r=Veykril
fix: fix ambigious package name in flycheck fixes #18121
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs | 2 |
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)| { |
