From a15dfca54f1b6e54226797fa12fe0d7a2bf9252e Mon Sep 17 00:00:00 2001 From: Jeffrey Seyfried Date: Wed, 22 Jun 2016 02:50:05 +0000 Subject: Instead of renaming, treat differently marked identifiers as unequal --- src/libsyntax/parse/token.rs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/libsyntax/parse') 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)] -- cgit 1.4.1-3-g733a5