diff options
| author | bors <bors@rust-lang.org> | 2013-10-02 13:26:36 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-02 13:26:36 -0700 |
| commit | 371a7ec56959323fd8add557219c4cbcac89825f (patch) | |
| tree | 891a58dce818a99d94bbc16d326085c38d5728f8 /src/libstd | |
| parent | 353578a7b36c003da8f5ac818a1554cdb652f9c2 (diff) | |
| parent | b7fe83d573d8073f7d663bee5c0b3e1493b9998d (diff) | |
| download | rust-371a7ec56959323fd8add557219c4cbcac89825f.tar.gz rust-371a7ec56959323fd8add557219c4cbcac89825f.zip | |
auto merge of #9675 : sfackler/rust/lint, r=alexcrichton
Closes #9671
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/fmt/parse.rs | 5 | ||||
| -rw-r--r-- | src/libstd/local_data.rs | 1 | ||||
| -rw-r--r-- | src/libstd/option.rs | 1 | ||||
| -rw-r--r-- | src/libstd/send_str.rs | 1 |
4 files changed, 8 insertions, 0 deletions
diff --git a/src/libstd/fmt/parse.rs b/src/libstd/fmt/parse.rs index b185b67d09c..a95bd563a81 100644 --- a/src/libstd/fmt/parse.rs +++ b/src/libstd/fmt/parse.rs @@ -61,17 +61,20 @@ pub struct FormatSpec<'self> { /// Enum describing where an argument for a format can be located. #[deriving(Eq)] +#[allow(missing_doc)] pub enum Position<'self> { ArgumentNext, ArgumentIs(uint), ArgumentNamed(&'self str) } /// Enum of alignments which are supported. #[deriving(Eq)] +#[allow(missing_doc)] pub enum Alignment { AlignLeft, AlignRight, AlignUnknown } /// Various flags which can be applied to format strings, the meaning of these /// flags is defined by the formatters themselves. #[deriving(Eq)] +#[allow(missing_doc)] pub enum Flag { FlagSignPlus, FlagSignMinus, @@ -82,6 +85,7 @@ pub enum Flag { /// A count is used for the precision and width parameters of an integer, and /// can reference either an argument or a literal integer. #[deriving(Eq)] +#[allow(missing_doc)] pub enum Count { CountIs(uint), CountIsParam(uint), @@ -126,6 +130,7 @@ pub struct PluralArm<'self> { /// /// http://www.icu-project.org/apiref/icu4c/classicu_1_1PluralRules.html #[deriving(Eq, IterBytes)] +#[allow(missing_doc)] pub enum PluralKeyword { Zero, One, Two, Few, Many } diff --git a/src/libstd/local_data.rs b/src/libstd/local_data.rs index 54c77e2d9f6..c4d0523fdf4 100644 --- a/src/libstd/local_data.rs +++ b/src/libstd/local_data.rs @@ -59,6 +59,7 @@ use util; */ pub type Key<T> = &'static KeyValue<T>; +#[allow(missing_doc)] pub enum KeyValue<T> { Key } trait LocalData {} diff --git a/src/libstd/option.rs b/src/libstd/option.rs index 033515875dd..5c7ae63d391 100644 --- a/src/libstd/option.rs +++ b/src/libstd/option.rs @@ -56,6 +56,7 @@ use clone::DeepClone; /// The option type #[deriving(Clone, DeepClone, Eq)] +#[allow(missing_doc)] pub enum Option<T> { None, Some(T), diff --git a/src/libstd/send_str.rs b/src/libstd/send_str.rs index d674b4980dd..075c1abd25c 100644 --- a/src/libstd/send_str.rs +++ b/src/libstd/send_str.rs @@ -22,6 +22,7 @@ use to_bytes::{IterBytes, Cb}; /// A SendStr is a string that can hold either a ~str or a &'static str. /// This can be useful as an optimization when an allocation is sometimes /// needed but the common case is statically known. +#[allow(missing_doc)] pub enum SendStr { SendStrOwned(~str), SendStrStatic(&'static str) |
