-
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
Change unexpected_cfg
to allow
by default
#124841
Conversation
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
Some changes occurred in tests/ui/check-cfg cc @Urgau |
The job Click to see the possible cause of the failure (guessed by this bot)
|
This just represent some projects which are far from being representative of the ecosystem. We also have received appreciation that the feature is working as expected. Anyway, this PR premature to say the least, discussion is still happening on #124800. @rustbot label +S-blocked -S-waiting-on-review |
Note that this isn't removing the feature altogether. I believe that one could significantly improve the false-positive rate and/or make creating exceptions easier so that the feature could be appreciated by everyone. I'm sure the projects mentioned above (like e.g. tokio) also like getting warnings about actually wrong |
imo this is a conversation best to be had on the issue to not fragment thingsd |
☔ The latest upstream changes (presumably #124706) made this pull request unmergeable. Please resolve the merge conflicts. |
Superseded by #125219. |
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 #124800
CC #124804
CC #124821
CC hyperium/hyper#3660
CC microsoft/windows-rs#3022
CC rust-bitcoin/rust-bitcoin#2748
CC tokio-rs/tokio#6538