Skip to content

Commit 6ec41ab

Browse files
committed
Auto merge of rust-lang#18123 - jhgg:fix-ambigius-package-cargo-check, r=Veykril
fix: fix ambigious package name in flycheck fixes rust-lang#18121
2 parents 622c701 + e425712 commit 6ec41ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ fn run_flycheck(state: &mut GlobalState, vfs_path: VfsPath) -> bool {
357357
.targets
358358
.iter()
359359
.any(|&it| crate_root_paths.contains(&cargo[it].root.as_path()));
360-
has_target_with_root.then(|| cargo[pkg].name.clone())
360+
has_target_with_root.then(|| cargo.package_flag(&cargo[pkg]))
361361
}),
362362
project_model::ProjectWorkspaceKind::Json(project) => {
363363
if !project.crates().any(|(_, krate)| {

0 commit comments

Comments
 (0)