Closed
Description
I can’t find the link to this anymore, but I remember a user saying the seeing unstable methods and other items in the documentation felt like teasing, since they can’t be used in stable Rust.
Indeed, since they’re impossible to use, unstable items are effectively not there when you’re using the stable or beta channel. Should their documentation be removed entirely from https://doc.rust-lang.org/stable/std/ https://doc.rust-lang.org/beta/std/ ?
I think this could be done by having rustdoc consider that #[unstable]
implies #[doc(hidden)]
when option_env!("CFG_DISABLE_UNSTABLE_FEATURES").is_some()
.