-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Add fuzzing and loom to well-known cfgs #124804
Conversation
r? @Nadrieril rustbot has assigned @Nadrieril. Use |
Implementation looks good. I don't know the policy for such changes though. @Urgau you seem to know about this :D wdyt? |
I have mixed feelings about adding those, not necessarily the same for both. First this would diverge from the T-compiler FCP of the feature where the rule that was proposed was:
As far as I know neither of them are set by any Rust Toolchain tool, failing the second point. Secondly those two cfgs are very specific are IMO not very well known by the broad community and including them by-default for everyone is a really high bar that I don't think neither of them quite reach. Thirdly they seems both related to crates.io (maybe Fourthly including However it seems that there is some desire in having them as well known cfgs, so I could be sold on having them as compatibility cfg (so no other ecosystem cfgs in the future). One thing that would help with my first and second point, would be to make them Cargo well known cfgs (instead of rustc well known), like @rustbot label -S-waiting-on-review +S-waiting-on-author +S-blocked As for the implementation in this PR it's missing two anti-regressions entries in |
Based on the conversation in #124800, I think having a PR up is premature. |
The point being raised in issues is that adding a build script to correct the false positives is an undue burden on the ecosystem, because every maintainer separately has to teach Cargo/rustc about all the well-known ecosystem cfgs that they use. It is entirely unclear to me if this was FCP'd with that concern in mind. I certainly can't find any evidence that it was discussed, so it seems rather dubious to point at the FCP here. I'm happy to bring this up in a compiler team meeting, unless someone can point me to where the compiler team already discussed this concern. And I see @workingjubilee has voiced the same feedback as I have, independently #124800 (comment) |
imo this is a discussion better had on an Issue, rather than a PR |
This allows to find solutions to the false positives that were found in the ecosystem before turning it to `warn` by default again. Most projects hit by this seem to just disable the warning, which indicates that it isn't working as expected. CC rust-lang#124800 CC rust-lang#124804 CC rust-lang#124821 CC hyperium/hyper#3660 CC microsoft/windows-rs#3022 CC rust-bitcoin/rust-bitcoin#2748 CC tokio-rs/tokio#6538
Closing because of this. I agree. I might do a similar PR to Cargo later. |
Just like
miri
, the cfgsfuzzing
andloom
are used for ecosystem-wide coordination. These are by definition well-known, so they should be included in the list.