about summary refs log tree commit diff
path: root/src/libsyntax/parse/token.rs
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-06-22 02:50:05 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-07-14 01:34:31 +0000
commita15dfca54f1b6e54226797fa12fe0d7a2bf9252e (patch)
treeb37486410919e630750e8e433b6e509c6ec33d63 /src/libsyntax/parse/token.rs
parentca924047de90b1370a7f1a81df7cfb611fe59b44 (diff)
downloadrust-a15dfca54f1b6e54226797fa12fe0d7a2bf9252e.tar.gz
rust-a15dfca54f1b6e54226797fa12fe0d7a2bf9252e.zip
Instead of renaming, treat differently marked identifiers as unequal
Diffstat (limited to 'src/libsyntax/parse/token.rs')
-rw-r--r--src/libsyntax/parse/token.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 8376d28164d..3b25d381419 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -15,7 +15,6 @@ pub use self::Lit::*;
 pub use self::Token::*;
 
 use ast::{self, BinOpKind};
-use ext::mtwt;
 use ptr::P;
 use util::interner::{RcStr, StrInterner};
 use util::interner;
@@ -313,17 +312,6 @@ impl Token {
             _ => false,
         }
     }
-
-    /// Hygienic identifier equality comparison.
-    ///
-    /// See `styntax::ext::mtwt`.
-    pub fn mtwt_eq(&self, other : &Token) -> bool {
-        match (self, other) {
-            (&Ident(id1), &Ident(id2)) | (&Lifetime(id1), &Lifetime(id2)) =>
-                mtwt::resolve(id1) == mtwt::resolve(id2),
-            _ => *self == *other
-        }
-    }
 }
 
 #[derive(Clone, RustcEncodable, RustcDecodable, PartialEq, Eq, Hash)]