diff options
| author | bors <bors@rust-lang.org> | 2014-01-03 12:16:48 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-03 12:16:48 -0800 |
| commit | 08321f1c49d75e60a2c56320a3f1483e7bf79a91 (patch) | |
| tree | fd429cf0c3cd63379bef08c36fd9acf0f3e0d82a /src/libstd/fmt/rt.rs | |
| parent | 11ce6b709ace233e473eddb26e3e23c2c4c16cdd (diff) | |
| parent | 4bea679dbe3ba98049ac700d84ad48271753ce40 (diff) | |
auto merge of #11149 : alexcrichton/rust/remove-either, r=brson
Had to change some stuff in typeck to bootstrap (getting methods in fmt off of Either), but other than that not so painful. Closes #9157
Diffstat (limited to 'src/libstd/fmt/rt.rs')
| -rw-r--r-- | src/libstd/fmt/rt.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libstd/fmt/rt.rs b/src/libstd/fmt/rt.rs index c139a2f5734..89895f30585 100644 --- a/src/libstd/fmt/rt.rs +++ b/src/libstd/fmt/rt.rs @@ -17,7 +17,6 @@ #[allow(missing_doc)]; #[doc(hidden)]; -use either::Either; use fmt::parse; use option::Option; @@ -55,8 +54,13 @@ pub enum Method<'a> { Select(&'a [SelectArm<'a>], &'a [Piece<'a>]), } +pub enum PluralSelector { + Keyword(parse::PluralKeyword), + Literal(uint), +} + pub struct PluralArm<'a> { - selector: Either<parse::PluralKeyword, uint>, + selector: PluralSelector, result: &'a [Piece<'a>], } |
