-
Notifications
You must be signed in to change notification settings - Fork 432
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
Use doc(cfg) to annotate feature-gated items #1019
Conversation
Do we want this for |
This feature does not mark trait implementations, so IIUC |
I did the same for There are several items available only given |
I think we can assume it, at least it's what we do in RustCrypto. |
Done. |
Starts implementation of #986. @newpavlov / @vks thoughts? I haven't extended this to other crates yet pending feedback.
Note that applying to impls e.g. like this doesn't appear to do anything.
// Implement `CryptoRng` for boxed references to an `CryptoRng`. #[cfg(feature = "alloc")] +#[cfg_attr(nightly, doc(cfg(feature = "alloc")))] impl<R: CryptoRng + ?Sized> CryptoRng for Box<R> {}