diff options
| author | bors <bors@rust-lang.org> | 2013-10-17 11:06:31 -0700 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-17 11:06:31 -0700 | 
| commit | d773a024a2976f2759235551a52101cd08b37cce (patch) | |
| tree | 3751e8ff14bf7860fd49850a1d6c8db4e7205ce4 /src/libstd/fmt/parse.rs | |
| parent | d4a32386f3b61a4997de54ed00c0a80fd07ecc75 (diff) | |
| parent | 0adb41d0eb44ef74e897c22d9f1fcd8f97ef3458 (diff) | |
| download | rust-d773a024a2976f2759235551a52101cd08b37cce.tar.gz rust-d773a024a2976f2759235551a52101cd08b37cce.zip | |
auto merge of #9908 : alexcrichton/rust/snapshots, r=thestinger
Diffstat (limited to 'src/libstd/fmt/parse.rs')
| -rw-r--r-- | src/libstd/fmt/parse.rs | 47 | 
1 files changed, 0 insertions, 47 deletions
| diff --git a/src/libstd/fmt/parse.rs b/src/libstd/fmt/parse.rs index 11b869c930e..8903d817c3f 100644 --- a/src/libstd/fmt/parse.rs +++ b/src/libstd/fmt/parse.rs @@ -48,27 +48,6 @@ pub struct Argument<'self> { /// Specification for the formatting of an argument in the format string. #[deriving(Eq)] -#[cfg(stage0)] -pub struct FormatSpec<'self> { - /// Optionally specified character to fill alignment with - fill: Option<char>, - /// Optionally specified alignment - align: Alignment, - /// Packed version of various flags provided - flags: uint, - /// The integer precision to use - precision: Count, - /// The string width requested for the resulting format - width: Count, - /// The descriptor string representing the name of the format desired for - /// this argument, this can be empty or any number of characters, although - /// it is required to be one word. - ty: &'self str -} - -/// Specification for the formatting of an argument in the format string. -#[deriving(Eq)] -#[cfg(not(stage0))] pub struct FormatSpec<'self> { /// Optionally specified character to fill alignment with fill: Option<char>, @@ -113,18 +92,6 @@ pub enum Flag { /// can reference either an argument or a literal integer. #[deriving(Eq)] #[allow(missing_doc)] -#[cfg(stage0)] -pub enum Count { - CountIs(uint), - CountIsParam(uint), - CountIsName(&'static str), // not actually used, see stage1 - CountIsNextParam, - CountImplied, -} - -#[deriving(Eq)] -#[allow(missing_doc)] -#[cfg(not(stage0))] pub enum Count<'self> { CountIs(uint), CountIsName(&'self str), @@ -594,20 +561,6 @@ impl<'self> Parser<'self> { /// Parses a Count parameter at the current position. This does not check /// for 'CountIsNextParam' because that is only used in precision, not /// width. - #[cfg(stage0)] - fn count(&mut self) -> Count { - match self.integer() { - Some(i) => { - if self.consume('$') { - CountIsParam(i) - } else { - CountIs(i) - } - } - None => { CountImplied } - } - } - #[cfg(not(stage0))] fn count(&mut self) -> Count<'self> { match self.integer() { Some(i) => { | 
