about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-11-13 05:22:09 -0800
committerGitHub <noreply@github.com>2016-11-13 05:22:09 -0800
commitea02f87daab14fff71af751c8e3f66b689cac3cd (patch)
tree44c49d6f35be624f3e0c7621ecb0a5e202c8315b /src
parentb6b98eaa40d2c81890cbeb31258aadb238f07279 (diff)
parent8a06740a1074adacac7c43cc4441107455815163 (diff)
downloadrust-ea02f87daab14fff71af751c8e3f66b689cac3cd.tar.gz
rust-ea02f87daab14fff71af751c8e3f66b689cac3cd.zip
Auto merge of #37735 - Mark-Simulacrum:remove-e-macro, r=bluss
Remove macro work-around

`--stage 2` build succeeded.
Diffstat (limited to 'src')
-rw-r--r--src/libcore/tuple.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/libcore/tuple.rs b/src/libcore/tuple.rs
index c3608b60a31..55d55079ddc 100644
--- a/src/libcore/tuple.rs
+++ b/src/libcore/tuple.rs
@@ -13,11 +13,6 @@
 use cmp::*;
 use cmp::Ordering::*;
 
-// FIXME(#19630) Remove this work-around
-macro_rules! e {
-    ($e:expr) => { $e }
-}
-
 // macro for implementing n-ary tuple functions and operations
 macro_rules! tuple_impls {
     ($(
@@ -29,7 +24,7 @@ macro_rules! tuple_impls {
             #[stable(feature = "rust1", since = "1.0.0")]
             impl<$($T:Clone),+> Clone for ($($T,)+) {
                 fn clone(&self) -> ($($T,)+) {
-                    ($(e!(self.$idx.clone()),)+)
+                    ($(self.$idx.clone(),)+)
                 }
             }
 
@@ -37,11 +32,11 @@ macro_rules! tuple_impls {
             impl<$($T:PartialEq),+> PartialEq for ($($T,)+) {
                 #[inline]
                 fn eq(&self, other: &($($T,)+)) -> bool {
-                    e!($(self.$idx == other.$idx)&&+)
+                    $(self.$idx == other.$idx)&&+
                 }
                 #[inline]
                 fn ne(&self, other: &($($T,)+)) -> bool {
-                    e!($(self.$idx != other.$idx)||+)
+                    $(self.$idx != other.$idx)||+
                 }
             }