-
Notifications
You must be signed in to change notification settings - Fork 481
Default experimental_toolchain_generated_sysroot to True #2277
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
Default experimental_toolchain_generated_sysroot to True #2277
Conversation
2824e05
to
0620e50
Compare
0620e50
to
ac64412
Compare
@UebelAndre PTAL |
Thanks! Why not flip the flag though? |
8969ea3
to
4c3f445
Compare
4c3f445
to
5269036
Compare
@UebelAndre Yes. Let's just flip the flag. I changed the PR. PTAL. |
I don’t think you should remove the flag just yet. Can you only flip the default? |
@UebelAndre Done. PTAL. |
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.
Thanks!
I'm not 100% sure, but this might have introduced an issue with the
when trying to upgrade |
Interesting, I'm curious why this wasn't caught by existing CI. Can you file a bug with a small repro? |
@UebelAndre same issue here. I had to set clippy-driver will automatically add --sysroot based on SYSROOT if it doesn't detect a --sysroot command line flag. Is the @bazel-out/k8-opt/bin/.../test-NNN/my_test.clippy.ok-0.params parameter passed literally to clippy-driver, or is it expanded by process_wrapper? If it's passed literally, that would explain why it appears twice: once in the clippy.ok-0.params file, and once by clippy-driver. Should an "experimental" flag really be enabled by default? I overlooked this initially because I assumed the experimental flag would be disabled by default. |
The fix to this issue should be done upstream in rust-lang/rust-clippy#12203. |
This removes a workaround that was necessary in the past to work around an issue in clippy. The issue is now fixed in clippy, and our clippy version is recent enough to include the fix. See also: * bazelbuild/rules_rust#2277 * rust-lang/rust-clippy#12203
This removes a workaround that was necessary in the past to work around an issue in clippy. The issue is now fixed in clippy, and our clippy version is recent enough to include the fix. See also: * bazelbuild/rules_rust#2277 * rust-lang/rust-clippy#12203
#2223 only sets
--@rules_rust//rust/settings:experimental_toolchain_generated_sysroot
in a few targets on CI. This PR defaults the feature flag toTrue
.This ensures the feature flag works at a larger scope because we remove it.