Skip to content

Commit

Permalink
More test fixes and rebase conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jan 21, 2015
1 parent df1cddf commit ecbee2e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/librustc/diagnostics.rs
Expand Up @@ -78,7 +78,6 @@ register_diagnostics! {
E0139,
E0152,
E0153,
E0154,
E0157,
E0158,
E0161,
Expand Down
1 change: 1 addition & 0 deletions src/librustc_resolve/diagnostics.rs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/io/mem.rs
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/libsyntax/parse/lexer/mod.rs
Expand Up @@ -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()])
}
Expand Down

0 comments on commit ecbee2e

Please sign in to comment.