about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-09 14:08:10 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-11 11:30:38 -0800
commit52edb2ecc9530264dc75babe477fd75c64feac04 (patch)
tree7110ee1e9e8b123ffdd8be4dd1e9b6213b9cb08c /src/libsyntax/parse
parentb25e100173effba685d076cee16f8af150078617 (diff)
downloadrust-52edb2ecc9530264dc75babe477fd75c64feac04.tar.gz
rust-52edb2ecc9530264dc75babe477fd75c64feac04.zip
Register new snapshots
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/lexer/mod.rs12
-rw-r--r--src/libsyntax/parse/token.rs2
2 files changed, 4 insertions, 10 deletions
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)]