about summary refs log tree commit diff
path: root/src/libsyntax/codemap.rs
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/codemap.rs
parentb25e100173effba685d076cee16f8af150078617 (diff)
downloadrust-52edb2ecc9530264dc75babe477fd75c64feac04.tar.gz
rust-52edb2ecc9530264dc75babe477fd75c64feac04.zip
Register new snapshots
Diffstat (limited to 'src/libsyntax/codemap.rs')
-rw-r--r--src/libsyntax/codemap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs
index 50b4f342368..7f2becf8201 100644
--- a/src/libsyntax/codemap.rs
+++ b/src/libsyntax/codemap.rs
@@ -350,7 +350,7 @@ impl CodeMap {
         // Remove utf-8 BOM if any.
         // FIXME #12884: no efficient/safe way to remove from the start of a string
         // and reuse the allocation.
-        let mut src = if src.starts_with("\ufeff") {
+        let mut src = if src.starts_with("\u{feff}") {
             String::from_str(src.slice_from(3))
         } else {
             String::from_str(src.as_slice())