-
Notifications
You must be signed in to change notification settings - Fork 1.7k
minor: Use CargoConfig.extra_args
for fetching metadata
#14642
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
Conversation
@@ -297,6 +297,7 @@ impl CargoWorkspace { | |||
let other_options: Vec<_> = targets | |||
.into_iter() | |||
.flat_map(|target| ["--filter-platform".to_string(), target]) | |||
.chain(config.extra_args.clone()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only set when the targets are empty here, we should put this after the !targets.is_empty()
branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed now
@bors r+ |
☀️ Test successful - checks-actions |
This change broke a workaround many of us have been using to have a separate directory for rust-analyzer: #6007 (comment). |
#14712 should patch over this. Unstable flags seem to be the only relevant ones so thats all we pass through then |
Fixes #14510