Skip to content

toolchain: hoist binary name conditionals out of fallback functions #4330

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

djc
Copy link
Contributor

@djc djc commented May 12, 2025

Follow up from #4324. Conceptually I feel like this makes more sense? Not a big win, though.

@djc djc requested review from ChrisDenton and rami3l May 12, 2025 13:30
info!("`rust-analyzer` is unavailable for the active toolchain");
info!("falling back to {:?}", cmd.get_program());
return Ok(cmd);
if binary == "cargo" || binary == "cargo.exe" {
Copy link
Member

Choose a reason for hiding this comment

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

I guess a match with | patterns maybe clearer...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants