diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-06-10 17:46:49 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-06-10 17:46:49 -0700 |
| commit | 84d269592168b2e8ca9784ada5d86ea6cdb9de9f (patch) | |
| tree | 21af8f49c733159198fdf1e118547e4e9bab46d2 /src/libstd/rt | |
| parent | d4de99aa6c53b0eb0d5be2ccfc62e2c89b2cd2df (diff) | |
| download | rust-84d269592168b2e8ca9784ada5d86ea6cdb9de9f.tar.gz rust-84d269592168b2e8ca9784ada5d86ea6cdb9de9f.zip | |
std::rt: Work around a dynamic borrowck bug
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/io/extensions.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstd/rt/io/extensions.rs b/src/libstd/rt/io/extensions.rs index fcbf31e87f2..ad9658e48ba 100644 --- a/src/libstd/rt/io/extensions.rs +++ b/src/libstd/rt/io/extensions.rs @@ -749,8 +749,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(); @@ -772,7 +770,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]); } } |
