Fallout from stabilization.

This commit is contained in:
Aaron Turon
2015-01-17 16:15:52 -08:00
parent 092ba6a856
commit a506d4cbfe
49 changed files with 126 additions and 125 deletions

View File

@@ -271,9 +271,9 @@ impl<'a> StringReader<'a> {
fn with_str_from_to<T, F>(&self, start: BytePos, end: BytePos, f: F) -> T where
F: FnOnce(&str) -> T,
{
f(self.filemap.src.slice(
self.byte_offset(start).to_uint(),
self.byte_offset(end).to_uint()))
f(&self.filemap.src[
self.byte_offset(start).to_uint()..
self.byte_offset(end).to_uint()])
}
/// Converts CRLF to LF in the given string, raising an error on bare CR.