Skip to content

Commit ecbee2e

Browse files
committed
More test fixes and rebase conflicts
1 parent df1cddf commit ecbee2e

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

src/librustc/diagnostics.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ register_diagnostics! {
7878
E0139,
7979
E0152,
8080
E0153,
81-
E0154,
8281
E0157,
8382
E0158,
8483
E0161,

src/librustc_resolve/diagnostics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#![allow(non_snake_case)]
1212

1313
register_diagnostics! {
14+
E0154,
1415
E0157,
1516
E0153,
1617
E0251, // a named type or value has already been imported in this module

src/libstd/io/mem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ impl<'a> Reader for BufReader<'a> {
350350
let write_len = min(buf.len(), self.buf.len() - self.pos);
351351
{
352352
let input = &self.buf[self.pos.. self.pos + write_len];
353-
let output = &mut buf.slice_to_mut[..write_len];
353+
let output = &mut buf[..write_len];
354354
assert_eq!(input.len(), output.len());
355355
slice::bytes::copy_memory(output, input);
356356
}

src/libsyntax/parse/lexer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ impl<'a> StringReader<'a> {
271271
fn with_str_from_to<T, F>(&self, start: BytePos, end: BytePos, f: F) -> T where
272272
F: FnOnce(&str) -> T,
273273
{
274-
f(self.filemap.src[
274+
f(&self.filemap.src[
275275
self.byte_offset(start).to_usize()..
276276
self.byte_offset(end).to_usize()])
277277
}

0 commit comments

Comments
 (0)