Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rustc version when
clippy-driver
is used
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>
- Loading branch information