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.
10 /* This file incorporates work covered by the following copyright and
12 * Copyright 2013 The Rust Project Developers. See the COPYRIGHT
13 * file at the top-level directory of this distribution and at
14 * http://rust-lang.org/COPYRIGHT.
16 * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
17 * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
18 * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
19 * option. This file may not be copied, modified, or distributed
20 * except according to those terms.
23 #![warn(clippy::missing_docs_in_private_items)]
24 // When denying at the crate level, be sure to not get random warnings from the
25 // injected intrinsics by the compiler.
27 #![feature(associated_type_defaults)]
29 //! Some garbage docs for the crate here
30 #![doc = "More garbage"]
32 type Typedef = String;
33 pub type PubTypedef = String;
45 #[allow(clippy::missing_docs_in_private_items)]
52 pub mod pub_module_no_dox {}
58 #[allow(clippy::missing_docs_in_private_items)]
66 fn foo_with_impl(&self) {}
69 #[allow(clippy::missing_docs_in_private_items)]
72 fn foo_with_impl(&self) {}
77 fn foo_with_impl(&self) {}
80 #[allow(clippy::missing_docs_in_private_items)]
88 type AssociatedTypeDef = Self;
93 type DocumentedTypeDef = Self;
108 #[allow(clippy::missing_docs_in_private_items)]
112 #[allow(clippy::missing_docs_in_private_items)]
118 // should need to redefine documentation for implementations of traits
124 // It sure is nice if doc(hidden) implies allow(missing_docs), and that it
125 // applies recursively
135 BazA { a: isize, b: isize },
140 PubBazA { a: isize },
152 #[allow(clippy::missing_docs_in_private_items)]
154 PubBaz3A { b: isize },
162 pub const FOO1: u32 = 0;
163 #[allow(clippy::missing_docs_in_private_items)]
164 pub const FOO2: u32 = 0;
166 pub const FOO3: u32 = 0;
167 pub const FOO4: u32 = 0;
171 pub static BAR1: u32 = 0;
172 #[allow(clippy::missing_docs_in_private_items)]
173 pub static BAR2: u32 = 0;
175 pub static BAR3: u32 = 0;
176 pub static BAR4: u32 = 0;
180 pub fn documented() {}
181 pub fn undocumented1() {}
182 pub fn undocumented2() {}
183 fn undocumented3() {}
187 pub fn also_documented() {}
188 pub fn also_undocumented1() {}
189 fn also_undocumented2() {}
193 pub mod public_interface {
194 pub use internal_impl::documented as foo;
195 pub use internal_impl::globbed::*;
196 pub use internal_impl::undocumented1 as bar;
197 pub use internal_impl::{documented, undocumented2};