More test fixes and rebase conflicts

This commit is contained in:
Alex Crichton 2015-01-21 11:56:52 -08:00
parent df1cddf20a
commit ecbee2e568
4 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,6 @@ register_diagnostics! {
E0139,
E0152,
E0153,
E0154,
E0157,
E0158,
E0161,

View File

@ -11,6 +11,7 @@
#![allow(non_snake_case)]
register_diagnostics! {
E0154,
E0157,
E0153,
E0251, // a named type or value has already been imported in this module

View File

@ -350,7 +350,7 @@ impl<'a> Reader for BufReader<'a> {
let write_len = min(buf.len(), self.buf.len() - self.pos);
{
let input = &self.buf[self.pos.. self.pos + write_len];
let output = &mut buf.slice_to_mut[..write_len];
let output = &mut buf[..write_len];
assert_eq!(input.len(), output.len());
slice::bytes::copy_memory(output, input);
}

View File

@ -271,7 +271,7 @@ 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[
f(&self.filemap.src[
self.byte_offset(start).to_usize()..
self.byte_offset(end).to_usize()])
}