I tried this code:
pub trait Trait {
#[doc(hidden)]
fn f();
}
pub struct S;
impl Trait for S {
fn f() {}
}
I expected to see this happen: Rustdoc does not show f in the documentation for S.
Instead, this happened:

Since f is properly hidden in the documentation for Trait, the link for f is broken.
Meta
rustc --version --verbose:
rustc 1.57.0-nightly (ac2d9fc50 2021-09-21)
Originally posted by @rust-log-analyzer in #89167 (comment)
I tried this code:
I expected to see this happen: Rustdoc does not show
fin the documentation forS.Instead, this happened:

Since
fis properly hidden in the documentation forTrait, the link forfis broken.Meta
rustc --version --verbose:Originally posted by @rust-log-analyzer in #89167 (comment)