Skip to content

Commit

Permalink
std::rt: Work around a dynamic borrowck bug
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Jun 19, 2013
1 parent fb2765e commit 1120f8c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libstd/rt/io/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,6 @@ mod test {
#[should_fail]
#[ignore(cfg(windows))]
fn push_bytes_fail_reset_len() {
use unstable::finally::Finally;

// push_bytes unsafely sets the vector length. This is testing that
// upon failure the length is reset correctly.
let mut reader = MockReader::new();
Expand All @@ -773,7 +771,8 @@ mod test {
reader.push_bytes(&mut *buf, 4);
}).finally {
// NB: Using rtassert here to trigger abort on failure since this is a should_fail test
rtassert!(*buf == ~[8, 9, 10]);
// FIXME: #7049 This fails because buf is still borrowed
//rtassert!(*buf == ~[8, 9, 10]);
}
}

Expand Down

0 comments on commit 1120f8c

Please sign in to comment.