[0.2] Fix rustc version when clippy-driver is used#3904
Merged
tgross35 merged 2 commits intorust-lang:libc-0.2from Sep 10, 2024
Merged
[0.2] Fix rustc version when clippy-driver is used#3904tgross35 merged 2 commits intorust-lang:libc-0.2from
clippy-driver is used#3904tgross35 merged 2 commits intorust-lang:libc-0.2from
Conversation
Collaborator
|
r? @JohnTitor rustbot has assigned @JohnTitor. Use |
6196c7f to
1074417
Compare
This is a combined cherry-pick of the following two commits: - 18b8da9 ("Handle rustc version output correctly...") - cdf12d2 ("Update `rustc_version_cmd`") These two commits are squashed for the backport to slightly reduce the amount of conflict resolution needed going forward (some small tweaks were still needed). This backports the following: - <rust-lang#3893> - <rust-lang#3903> Commit 1 original message: Handle rustc version output correctly when `clippy-driver` used Commit 2 original message: Update `rustc_version_cmd` Change `if let` to a `match` because it is about the same complexity but also works with our MSRV for 0.2. This should allow backporting [1] easier, as well as future backports that touch this code. Additionally, add some new documentation comments. [1]: rust-lang#3893 Co-authored-by: Nathaniel Bennett <me@nathanielbennett.com> Co-authored-by: Trevor Gross <tmgross@umich.edu>
1074417 to
4168789
Compare
This should be compatible with older versions of rustc, to get the branches more in sync. (backport <rust-lang#3910>) (cherry picked from commit bdce2b2)
4168789 to
abcb8f8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The first commit is a combined cherry-pick of the following two commits:
rustc_version_cmd")These two commits are squashed for the backport to slightly reduce the amount of conflict resolution needed going forward (some small tweaks were still needed).
This backports the following:
clippy-driverused #3893rustc_version_cmd#3903