Skip to content

Commit 1120f8c

Browse files
committed
std::rt: Work around a dynamic borrowck bug
1 parent fb2765e commit 1120f8c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libstd/rt/io/extensions.rs

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

0 commit comments

Comments
 (0)