You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now once-fns are hidden behind a -Z flag, but now that we have #[feature] directives we should use them instead.
This should involve removal of the -Z flag code, modifying feature_gate.rs and updating doc/rust.md with the new feature (and why it's a gated feature, not on-by-default)
The text was updated successfully, but these errors were encountered:
…ive, r=alexcrichton
Hello,
First time rust contributor here, please let me know if I need to sort out the contribution agreement for this.
I picked issue #9755 to dip my toe in the water, this pull request isn't quite complete though as I have not updated the documentation. The reason for this is that I haven't tracked down why this feature is gated so I don't feel I can write a justification of the same quality as the other features have been documented.
If someone would like to explain or point me at a mail thread I am happy to update with this change.
Hopefully I have understood the process of converting the old flag into a directive correctly.
Also just to call out what I am sure if a known quirk when adding feature directives, you can't build this code unless you have a snapshot of the compiler which knows about the feature directive. Chicken and the egg. I split the change into two commits, the first should be able to build a snapshot that can compile the second.
…shearth
Warn when `clippy::restriction` is enabled via the command line
Currently it catches `#![warn(clippy::restriction)]`, it'll now catch `-W clippy::restriction` from the CLI. Also tweaks the message slightly
changelog: [`blanket_clippy_restriction_lints`]: Warn when `clippy::restriction` is enabled via the command line
Right now once-fns are hidden behind a
-Z
flag, but now that we have#[feature]
directives we should use them instead.This should involve removal of the
-Z
flag code, modifyingfeature_gate.rs
and updatingdoc/rust.md
with the new feature (and why it's a gated feature, not on-by-default)The text was updated successfully, but these errors were encountered: