1 #![feature(tool_lints)]
3 /* This file incorporates work covered by the following copyright and
5 * Copyright 2013 The Rust Project Developers. See the COPYRIGHT
6 * file at the top-level directory of this distribution and at
7 * http://rust-lang.org/COPYRIGHT.
9 * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
10 * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
11 * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
12 * option. This file may not be copied, modified, or distributed
13 * except according to those terms.
18 #![warn(clippy::missing_docs_in_private_items)]
20 // When denying at the crate level, be sure to not get random warnings from the
21 // injected intrinsics by the compiler.
23 #![feature(associated_type_defaults)]
25 //! Some garbage docs for the crate here
26 #![doc="More garbage"]
28 type Typedef = String;
29 pub type PubTypedef = String;
41 #[allow(clippy::missing_docs_in_private_items)]
48 pub mod pub_module_no_dox {}
54 #[allow(clippy::missing_docs_in_private_items)] pub fn foo4() {}
61 fn foo_with_impl(&self) {}
64 #[allow(clippy::missing_docs_in_private_items)]
67 fn foo_with_impl(&self) {}
72 fn foo_with_impl(&self) {}
75 #[allow(clippy::missing_docs_in_private_items)]
83 type AssociatedTypeDef = Self;
88 type DocumentedTypeDef = Self;
103 #[allow(clippy::missing_docs_in_private_items)] pub fn foo3() {}
106 #[allow(clippy::missing_docs_in_private_items)]
112 // should need to redefine documentation for implementations of traits
118 // It sure is nice if doc(hidden) implies allow(missing_docs), and that it
119 // applies recursively
151 #[allow(clippy::missing_docs_in_private_items)]
164 pub const FOO1: u32 = 0;
165 #[allow(clippy::missing_docs_in_private_items)]
166 pub const FOO2: u32 = 0;
168 pub const FOO3: u32 = 0;
169 pub const FOO4: u32 = 0;
174 pub static BAR1: u32 = 0;
175 #[allow(clippy::missing_docs_in_private_items)]
176 pub static BAR2: u32 = 0;
178 pub static BAR3: u32 = 0;
179 pub static BAR4: u32 = 0;
184 pub fn documented() {}
185 pub fn undocumented1() {}
186 pub fn undocumented2() {}
187 fn undocumented3() {}
191 pub fn also_documented() {}
192 pub fn also_undocumented1() {}
193 fn also_undocumented2() {}
197 pub mod public_interface {
198 pub use internal_impl::documented as foo;
199 pub use internal_impl::undocumented1 as bar;
200 pub use internal_impl::{documented, undocumented2};
201 pub use internal_impl::globbed::*;