Closed
Description
With --document-private-items
:
- private
fn
s are documented - public
fn
s are documented #[macro_export] macro_rules!
are documented- non-exported
macro_rules!
are not documented
I'm not sure if this is intended behavior, but it's not very intuitive and kind of frustrating.
Code
macro_rules! foo_macro {
() => { };
}
#[macro_export]
macro_rules! exported_foo_macro {
() => { };
}
fn foo_fn() {}
pub fn pub_foo_fn() {}
Command
cargo doc --document-private-items
Output
Version
$ rustdoc -vV
rustdoc 1.47.0 (18bf6b4f0 2020-10-07)
binary: rustdoc
commit-hash: 18bf6b4f01a6feaf7259ba7cdae58031af1b7b39
commit-date: 2020-10-07
host: x86_64-apple-darwin
release: 1.47.0
LLVM version: 11.0