Move token extra-traits helpers to tt module
diff --git a/src/expr.rs b/src/expr.rs
index 863492c..19c5172 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -4,7 +4,7 @@
#[cfg(feature = "extra-traits")]
use std::hash::{Hash, Hasher};
#[cfg(feature = "extra-traits")]
-use mac::TokenStreamHelper;
+use tt::TokenStreamHelper;
#[cfg(feature = "full")]
use std::mem;
@@ -691,17 +691,17 @@
}
}
-#[cfg(feature = "extra-traits")]
+#[cfg(all(feature = "full", feature = "extra-traits"))]
impl Eq for PatVerbatim {}
-#[cfg(feature = "extra-traits")]
+#[cfg(all(feature = "full", feature = "extra-traits"))]
impl PartialEq for PatVerbatim {
fn eq(&self, other: &Self) -> bool {
TokenStreamHelper(&self.tts) == TokenStreamHelper(&other.tts)
}
}
-#[cfg(feature = "extra-traits")]
+#[cfg(all(feature = "full", feature = "extra-traits"))]
impl Hash for PatVerbatim {
fn hash<H>(&self, state: &mut H)
where