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/codemap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/codemap.rs') 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()) -- cgit 1.4.1-3-g733a5