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/libcollections/enum_set.rs | |
| 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/libcollections/enum_set.rs')
| -rw-r--r-- | src/libcollections/enum_set.rs | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/libcollections/enum_set.rs b/src/libcollections/enum_set.rs index ed7516fec16..bb762f4fb4e 100644 --- a/src/libcollections/enum_set.rs +++ b/src/libcollections/enum_set.rs @@ -183,60 +183,24 @@ impl<E:CLike> EnumSet<E> { } } -// NOTE(stage0): Remove impl after a snapshot -#[cfg(stage0)] -impl<E:CLike> Sub<EnumSet<E>, EnumSet<E>> for EnumSet<E> { - fn sub(&self, e: &EnumSet<E>) -> EnumSet<E> { - EnumSet {bits: self.bits & !e.bits} - } -} - -#[cfg(not(stage0))] // NOTE(stage0): Remove cfg after a snapshot impl<E:CLike> Sub<EnumSet<E>, EnumSet<E>> for EnumSet<E> { fn sub(self, e: EnumSet<E>) -> EnumSet<E> { EnumSet {bits: self.bits & !e.bits} } } -// NOTE(stage0): Remove impl after a snapshot -#[cfg(stage0)] -impl<E:CLike> BitOr<EnumSet<E>, EnumSet<E>> for EnumSet<E> { - fn bitor(&self, e: &EnumSet<E>) -> EnumSet<E> { - EnumSet {bits: self.bits | e.bits} - } -} - -#[cfg(not(stage0))] // NOTE(stage0): Remove cfg after a snapshot impl<E:CLike> BitOr<EnumSet<E>, EnumSet<E>> for EnumSet<E> { fn bitor(self, e: EnumSet<E>) -> EnumSet<E> { EnumSet {bits: self.bits | e.bits} } } -// NOTE(stage0): Remove impl after a snapshot -#[cfg(stage0)] -impl<E:CLike> BitAnd<EnumSet<E>, EnumSet<E>> for EnumSet<E> { - fn bitand(&self, e: &EnumSet<E>) -> EnumSet<E> { - EnumSet {bits: self.bits & e.bits} - } -} - -#[cfg(not(stage0))] // NOTE(stage0): Remove cfg after a snapshot impl<E:CLike> BitAnd<EnumSet<E>, EnumSet<E>> for EnumSet<E> { fn bitand(self, e: EnumSet<E>) -> EnumSet<E> { EnumSet {bits: self.bits & e.bits} } } -// NOTE(stage0): Remove impl after a snapshot -#[cfg(stage0)] -impl<E:CLike> BitXor<EnumSet<E>, EnumSet<E>> for EnumSet<E> { - fn bitxor(&self, e: &EnumSet<E>) -> EnumSet<E> { - EnumSet {bits: self.bits ^ e.bits} - } -} - -#[cfg(not(stage0))] // NOTE(stage0): Remove cfg after a snapshot impl<E:CLike> BitXor<EnumSet<E>, EnumSet<E>> for EnumSet<E> { fn bitxor(self, e: EnumSet<E>) -> EnumSet<E> { EnumSet {bits: self.bits ^ e.bits} |
