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
-1
View File
@@ -78,7 +78,6 @@
E0139,
E0152,
E0153,
E0154,
E0157,
E0158,
E0161,
+1
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
+1 -1
View File
@@ -350,7 +350,7 @@ fn read(&mut self, buf: &mut [u8]) -> IoResult<uint> {
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);
}
+1 -1
View File
@@ -271,7 +271,7 @@ pub fn name_from_to(&self, start: BytePos, end: BytePos) -> ast::Name {
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()])
}