Register new snapshots

This commit is contained in:
Alex Crichton 2014-12-09 14:08:10 -08:00
parent b25e100173
commit 52edb2ecc9
34 changed files with 8002 additions and 7220 deletions

View file

@ -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())