Closed
Description
I expect missing_doc
lint to only check that publicly-visible code is documented. The following gets caught by the lint checker when I think that it shouldn't:
#[deny(missing_doc)]
mod internal_impl {
pub fn secret_sauce() {
// unstable, messy, or unsafe code
}
}
pub mod public_interface {
use super::internal_impl;
/// I do something.
pub fn do_something() {
// [do stuff]
internal_impl::secret_sauce();
// [do more stuff]
}
}
Metadata
Metadata
Assignees
Labels
No labels