Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix ambigious package name in flycheck #18123

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

jhgg
Copy link
Contributor

@jhgg jhgg commented Sep 16, 2024

fixes #18121

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 16, 2024
@@ -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]))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we calling this package_flag? That feels like the wrong name for what this does

@Veykril
Copy link
Member

Veykril commented Sep 24, 2024

Thanks!
@bors r+

@bors
Copy link
Contributor

bors commented Sep 24, 2024

📌 Commit 99af938 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Sep 24, 2024

⌛ Testing commit 99af938 with merge b4eff89...

@bors
Copy link
Contributor

bors commented Sep 24, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing b4eff89 to master...

@bors bors merged commit b4eff89 into rust-lang:master Sep 24, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cargo check -p fails with ambiguous package names
4 participants