I tried this code:
mod actual_sub {
pub trait Actual {}
}
pub use actual_sub::Actual;
impl<T> Actual for T {}
pub struct S;
I expected to see this happen: the documentation for S shows that it implements Actual.
Instead, this happened: Actual is not listed in the list of blanket impls on S.
If actual_sub is made pub, the Actual blanket impl is now listed in the docs for S.
Meta
rustc --version --verbose:
rustc 1.61.0-nightly (3b348d932 2022-02-19)
binary: rustc
commit-hash: 3b348d932aa5c9884310d025cf7c516023fd0d9a
commit-date: 2022-02-19
host: x86_64-unknown-linux-gnu
release: 1.61.0-nightly
LLVM version: 14.0.0
cc #24305
I tried this code:
I expected to see this happen: the documentation for
Sshows that it implementsActual.Instead, this happened:
Actualis not listed in the list of blanket impls onS.If
actual_subis madepub, theActualblanket impl is now listed in the docs forS.Meta
rustc --version --verbose:cc #24305