1 // Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution.
4 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7 // option. This file may not be copied, modified, or distributed
8 // except according to those terms.
11 #![feature(tool_lints)]
13 /* This file incorporates work covered by the following copyright and
15 * Copyright 2013 The Rust Project Developers. See the COPYRIGHT
16 * file at the top-level directory of this distribution and at
17 * http://rust-lang.org/COPYRIGHT.
19 * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
20 * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
21 * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
22 * option. This file may not be copied, modified, or distributed
23 * except according to those terms.
28 #![warn(clippy::missing_docs_in_private_items)]
30 // When denying at the crate level, be sure to not get random warnings from the
31 // injected intrinsics by the compiler.
33 #![feature(associated_type_defaults)]
35 //! Some garbage docs for the crate here
36 #![doc="More garbage"]
38 type Typedef = String;
39 pub type PubTypedef = String;
51 #[allow(clippy::missing_docs_in_private_items)]
58 pub mod pub_module_no_dox {}
64 #[allow(clippy::missing_docs_in_private_items)] pub fn foo4() {}
71 fn foo_with_impl(&self) {}
74 #[allow(clippy::missing_docs_in_private_items)]
77 fn foo_with_impl(&self) {}
82 fn foo_with_impl(&self) {}
85 #[allow(clippy::missing_docs_in_private_items)]
93 type AssociatedTypeDef = Self;
98 type DocumentedTypeDef = Self;
113 #[allow(clippy::missing_docs_in_private_items)] pub fn foo3() {}
116 #[allow(clippy::missing_docs_in_private_items)]
122 // should need to redefine documentation for implementations of traits
128 // It sure is nice if doc(hidden) implies allow(missing_docs), and that it
129 // applies recursively
161 #[allow(clippy::missing_docs_in_private_items)]
174 pub const FOO1: u32 = 0;
175 #[allow(clippy::missing_docs_in_private_items)]
176 pub const FOO2: u32 = 0;
178 pub const FOO3: u32 = 0;
179 pub const FOO4: u32 = 0;
184 pub static BAR1: u32 = 0;
185 #[allow(clippy::missing_docs_in_private_items)]
186 pub static BAR2: u32 = 0;
188 pub static BAR3: u32 = 0;
189 pub static BAR4: u32 = 0;
194 pub fn documented() {}
195 pub fn undocumented1() {}
196 pub fn undocumented2() {}
197 fn undocumented3() {}
201 pub fn also_documented() {}
202 pub fn also_undocumented1() {}
203 fn also_undocumented2() {}
207 pub mod public_interface {
208 pub use internal_impl::documented as foo;
209 pub use internal_impl::undocumented1 as bar;
210 pub use internal_impl::{documented, undocumented2};
211 pub use internal_impl::globbed::*;