1 #![warn(clippy::missing_docs_in_private_items)]
2 // When denying at the crate level, be sure to not get random warnings from the
3 // injected intrinsics by the compiler.
5 #![feature(global_asm)]
7 //! Some garbage docs for the crate here
8 #![doc = "More garbage"]
10 type Typedef = String;
11 pub type PubTypedef = String;
14 pub mod pub_module_no_dox {}
20 #[allow(clippy::missing_docs_in_private_items)]
23 // It sure is nice if doc(hidden) implies allow(missing_docs), and that it
24 // applies recursively
34 BazA { a: isize, b: isize },
51 #[allow(clippy::missing_docs_in_private_items)]
53 PubBaz3A { b: isize },
61 pub const FOO1: u32 = 0;
62 #[allow(clippy::missing_docs_in_private_items)]
63 pub const FOO2: u32 = 0;
65 pub const FOO3: u32 = 0;
66 pub const FOO4: u32 = 0;
70 pub static BAR1: u32 = 0;
71 #[allow(clippy::missing_docs_in_private_items)]
72 pub static BAR2: u32 = 0;
74 pub static BAR3: u32 = 0;
75 pub static BAR4: u32 = 0;
79 pub fn documented() {}
80 pub fn undocumented1() {}
81 pub fn undocumented2() {}
86 pub fn also_documented() {}
87 pub fn also_undocumented1() {}
88 fn also_undocumented2() {}
92 pub mod public_interface {
93 pub use internal_impl::documented as foo;
94 pub use internal_impl::globbed::*;
95 pub use internal_impl::undocumented1 as bar;
96 pub use internal_impl::{documented, undocumented2};
101 // Ensure global asm doesn't require documentation.