From 52edb2ecc9530264dc75babe477fd75c64feac04 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 9 Dec 2014 14:08:10 -0800 Subject: Register new snapshots --- src/libsyntax/parse/lexer/mod.rs | 12 ++++-------- src/libsyntax/parse/token.rs | 2 -- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index 2a77e3e6791..4c15fae9feb 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -763,8 +763,6 @@ impl<'a> StringReader<'a> { } } - // SNAP c9f6d69 - #[allow(unused)] fn old_escape_warning(&mut self, sp: Span) { self.span_diagnostic .span_warn(sp, "\\U00ABCD12 and \\uABCD escapes are deprecated"); @@ -796,17 +794,15 @@ impl<'a> StringReader<'a> { self.scan_unicode_escape(delim) } else { let res = self.scan_hex_digits(4u, delim, false); - // SNAP c9f6d69 - //let sp = codemap::mk_sp(escaped_pos, self.last_pos); - //self.old_escape_warning(sp); + let sp = codemap::mk_sp(escaped_pos, self.last_pos); + self.old_escape_warning(sp); res } } 'U' if !ascii_only => { let res = self.scan_hex_digits(8u, delim, false); - // SNAP c9f6d69 - //let sp = codemap::mk_sp(escaped_pos, self.last_pos); - //self.old_escape_warning(sp); + let sp = codemap::mk_sp(escaped_pos, self.last_pos); + self.old_escape_warning(sp); res } '\n' if delim == '"' => { diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 4b1e9482a7d..1bdcd73d847 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -89,10 +89,8 @@ impl Lit { } } -#[cfg(not(stage0))] impl Copy for Lit {} -#[cfg(not(stage0))] impl Copy for IdentStyle {} #[allow(non_camel_case_types)] -- cgit 1.4.1-3-g733a5