stable rustdoc should prune unstable items from stdlib docs · Issue #31156 · rust-lang/rust (original) (raw)

For example, http://doc.rust-lang.org/std/error/trait.Error.html includes impls for unstable structs like std::ffi::IntoStringError. Like #31098, this is "dangling a carrot" which users of stable rust can't reach! I think that the doc page for IntoStringError shouldn't exist in the set of stable docs.

There are already passes to strip things like #[doc(hidden)] and private items from the crate before generating documentation. The same could be done for unstable items.