-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Make x.py clippy download and use beta clippy #97443
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
cc #95988 There are two possible ways to fix the rustdoc issue I can think of:
|
The beta clippy needed the beta sysroot to run, it was otherwise complaining that the crates were compiled by different versions of the compiler |
Huh, I'm not sure what this CI error is |
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #96687) made this pull request unmergeable. Please resolve the merge conflicts. |
This comment has been minimized.
This comment has been minimized.
The job Click to see the possible cause of the failure (guessed by this bot)
|
Ok, I've spent some time today debugging this with @asquared31415. I don't think it can work with clippy's current sysroot detection logic.
We need to get clippy to allow one of the following things:
@rust-lang/clippy do you have a preference for 1 or 2? or an alternative suggestion for how to get this working? |
☔ The latest upstream changes (presumably #98521) made this pull request unmergeable. Please resolve the merge conflicts. |
@flip1995 came up with a suggestion in Zulip: https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/.60x.2Epy.20clippy.60.20needs.20clippy.20changes |
@asquared31415 any updates on this pr? |
I took this over in #106394 - @asquared31415 if you want to work on that just let me know :) but I'm also in comfortable being in charge of getting it merged myself. |
Thanks for the update :) |
x clippy thanks to `@asquared31415` `@albertlarsan68` for all their help, most of this pr is their work note that this also adds x clippy --stage 0 -Awarnings to x86_64-gnu-llvm-15 to make sure it stays working; that won't gate on any clippy warnings, just enforce that clippy doesn't give a hard error. we can't add --stage 1 until clippy fixes its debug assertions not to panic. note that `x clippy --stage 1` currently breaks when combined with download-rustc. unlike the previous prs, this doesn't require changes to clippy (it works by using RUSTC_WRAPPER instead), and supports stage 0 read this commit-by-commit closes rust-lang#107628; see also rust-lang#106394, rust-lang#97443. fixes rust-lang#95988. helps with rust-lang#76495. r? bootstrap
x clippy thanks to `@asquared31415` `@albertlarsan68` for all their help, most of this pr is their work note that this also adds x clippy --stage 0 -Awarnings to x86_64-gnu-llvm-15 to make sure it stays working; that won't gate on any clippy warnings, just enforce that clippy doesn't give a hard error. we can't add --stage 1 until clippy fixes its debug assertions not to panic. note that `x clippy --stage 1` currently breaks when combined with download-rustc. unlike the previous prs, this doesn't require changes to clippy (it works by using RUSTC_WRAPPER instead), and supports stage 0 read this commit-by-commit closes rust-lang#107628; see also rust-lang#106394, rust-lang#97443. fixes rust-lang#95988. helps with rust-lang#76495. r? bootstrap
This is not complete, rustdoc does not work properly
I am working on making x.py download and use the beta clippy. Currently it functions for the most part, however it does not work when trying to run on rustdoc, failing to find some
rustc_X
extern crates. I was advised by @jyn514 that you might be able to help, @Mark-SimulacrumI noticed that the command being run does not contain the same
--extern rustc_X=path
that other commands seem to, I am unsure if that is the issue. More information will be provided in a comment.Fixes #95988.