From a84c2999c91f6ea43291006288ea6dd8c4852c3b Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 12 Oct 2013 19:02:46 -0700 Subject: Require module documentation with missing_doc Closes #9824 --- src/libstd/at_vec.rs | 2 ++ src/libstd/fmt/parse.rs | 6 ++++++ src/libstd/select.rs | 2 ++ src/libstd/str.rs | 1 + src/libstd/vec.rs | 1 + 5 files changed, 12 insertions(+) (limited to 'src/libstd') diff --git a/src/libstd/at_vec.rs b/src/libstd/at_vec.rs index 93a66f6d917..f6669893170 100644 --- a/src/libstd/at_vec.rs +++ b/src/libstd/at_vec.rs @@ -135,6 +135,7 @@ impl Clone for @[T] { } #[cfg(not(test))] +#[allow(missing_doc)] pub mod traits { use at_vec::append; use clone::Clone; @@ -152,6 +153,7 @@ pub mod traits { #[cfg(test)] pub mod traits {} +#[allow(missing_doc)] pub mod raw { use at_vec::capacity; use cast; diff --git a/src/libstd/fmt/parse.rs b/src/libstd/fmt/parse.rs index a95bd563a81..1b8998b5c6c 100644 --- a/src/libstd/fmt/parse.rs +++ b/src/libstd/fmt/parse.rs @@ -8,6 +8,12 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +//! Parsing of format strings +//! +//! These structures are used when parsing format strings for the compiler. +//! Parsing does not currently happen at runtime (structures of std::fmt::rt are +//! generated instead). + use prelude::*; use char; diff --git a/src/libstd/select.rs b/src/libstd/select.rs index 049b301144b..8ce23f4b53b 100644 --- a/src/libstd/select.rs +++ b/src/libstd/select.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[allow(missing_doc)]; + use cell::Cell; use comm; use container::Container; diff --git a/src/libstd/str.rs b/src/libstd/str.rs index 88497bdaa82..decfbb0785c 100644 --- a/src/libstd/str.rs +++ b/src/libstd/str.rs @@ -1253,6 +1253,7 @@ Section: Trait implementations */ #[cfg(not(test))] +#[allow(missing_doc)] pub mod traits { use ops::Add; use cmp::{TotalOrd, Ordering, Less, Equal, Greater, Eq, Ord, Equiv, TotalEq}; diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs index 77e38b48067..f31dbfec78a 100644 --- a/src/libstd/vec.rs +++ b/src/libstd/vec.rs @@ -603,6 +603,7 @@ impl<'self, T> RandomAccessIterator<&'self [T]> for ChunkIter<'self, T> { // Equality #[cfg(not(test))] +#[allow(missing_doc)] pub mod traits { use super::*; -- cgit 1.4.1-3-g733a5