diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-12-21 00:07:29 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-12-21 09:28:07 -0800 |
| commit | dbeef0edb2d25a3ff321d8e09532f053b5ef2c07 (patch) | |
| tree | 9ac43217e9134d908926c2aa7bfda279582f1ee6 /src/libsyntax/ext/tt | |
| parent | b084cda4e9e0540b67d5db728b58acf8afba9f6e (diff) | |
| parent | 84086c464f537591f0e4629676b3fc75517492ab (diff) | |
| download | rust-dbeef0edb2d25a3ff321d8e09532f053b5ef2c07.tar.gz rust-dbeef0edb2d25a3ff321d8e09532f053b5ef2c07.zip | |
rollup merge of #19972: alexcrichton/snapshots
Conflicts: src/libcollections/string.rs src/libcollections/vec.rs src/snapshots.txt
Diffstat (limited to 'src/libsyntax/ext/tt')
| -rw-r--r-- | src/libsyntax/ext/tt/transcribe.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/libsyntax/ext/tt/transcribe.rs b/src/libsyntax/ext/tt/transcribe.rs index e2439bad178..378dbba07fa 100644 --- a/src/libsyntax/ext/tt/transcribe.rs +++ b/src/libsyntax/ext/tt/transcribe.rs @@ -106,30 +106,6 @@ enum LockstepIterSize { LisContradiction(String), } -// NOTE(stage0): Remove impl after a snapshot -#[cfg(stage0)] -impl Add<LockstepIterSize, LockstepIterSize> for LockstepIterSize { - fn add(&self, other: &LockstepIterSize) -> LockstepIterSize { - match *self { - LisUnconstrained => other.clone(), - LisContradiction(_) => self.clone(), - LisConstraint(l_len, l_id) => match *other { - LisUnconstrained => self.clone(), - LisContradiction(_) => other.clone(), - LisConstraint(r_len, _) if l_len == r_len => self.clone(), - LisConstraint(r_len, r_id) => { - let l_n = token::get_ident(l_id); - let r_n = token::get_ident(r_id); - LisContradiction(format!("inconsistent lockstep iteration: \ - '{}' has {} items, but '{}' has {}", - l_n, l_len, r_n, r_len).to_string()) - } - }, - } - } -} - -#[cfg(not(stage0))] // NOTE(stage0): Remove cfg after a snapshot impl Add<LockstepIterSize, LockstepIterSize> for LockstepIterSize { fn add(self, other: LockstepIterSize) -> LockstepIterSize { match self { |
