Skip to content

Commit 84d2695

Browse files
committed
std::rt: Work around a dynamic borrowck bug
1 parent d4de99a commit 84d2695

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libstd/rt/io/extensions.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -749,8 +749,6 @@ mod test {
749749
#[should_fail]
750750
#[ignore(cfg(windows))]
751751
fn push_bytes_fail_reset_len() {
752-
use unstable::finally::Finally;
753-
754752
// push_bytes unsafely sets the vector length. This is testing that
755753
// upon failure the length is reset correctly.
756754
let mut reader = MockReader::new();
@@ -772,7 +770,8 @@ mod test {
772770
reader.push_bytes(&mut *buf, 4);
773771
}).finally {
774772
// NB: Using rtassert here to trigger abort on failure since this is a should_fail test
775-
rtassert!(*buf == ~[8, 9, 10]);
773+
// FIXME: #7049 This fails because buf is still borrowed
774+
//rtassert!(*buf == ~[8, 9, 10]);
776775
}
777776
}
778777

0 commit comments

Comments
 (0)