-
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
x clippy #117595
x clippy #117595
Conversation
This comment has been minimized.
This comment has been minimized.
Does this build clippy from the repo to then run that clippy on rustc again? |
yes. |
does |
"beta" (the bootstrap toolchain, sometimes stable) |
if you want to test with a custom clippy without building rustc from source you can set |
This comment has been minimized.
This comment has been minimized.
I did some cursed stuff over at rust-lang/rust-clippy#11235 where I built clippy from the clippy repo, copy that one into the I'm curious to see if this will still work wrt this change, when I set the |
it should, yes, but i haven't tested |
When runnning |
that is what x.py clippy does today yes i don't want to be the one who makes that decision |
This comment has been minimized.
This comment has been minimized.
Ah right makes sense that we would also run into some of the issues listed here rust-lang/rust-clippy#11235 (comment) 🥲 |
yeah i'm gonna remove the stage 1 test until rust-lang/rust-clippy#11230 is fixed |
0b807e2
to
1012698
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
src/bootstrap/src/core/builder.rs
Outdated
// Set PATH to include the sysroot bin dir so clippy can find cargo. | ||
let path = t!(env::join_paths( | ||
// The sysroot comes first in PATH to avoid using rustup's cargo. | ||
std::iter::once(PathBuf::from(initial_sysroot_bin)) | ||
.chain(env::split_paths(&t!(env::var("PATH")))) |
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.
☔ The latest upstream changes (presumably #116278) made this pull request unmergeable. Please resolve the merge conflicts. |
won't have a chance to fix the conflicts for at least a week - would appreciate a review of the new changes before i do that if it's not too much trouble |
LGTM. Can you clean up the commits? |
you can replicate this commit with `./x.py run bump-stage0 --args 2023-11-13`
Commits look pretty clean to me |
☀️ Test successful - checks-actions |
Finished benchmarking commit (4451777): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 672.679s -> 672.517s (-0.02%) |
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 #107628; see also #106394, #97443. fixes #95988. helps with #76495.
r? bootstrap