Rich-T-kid commented on code in PR #10984:
URL: https://github.com/apache/arrow-rs/pull/10984#discussion_r3934107440
##########
arrow-buffer/src/buffer/mutable.rs:
##########
@@ -1761,4 +1784,29 @@ mod tests {
buf.push(1u8);
buf.reserve(usize::MAX);
}
+ #[test]
+ fn try_collect_bool_reports_a_len_it_cannot_reserve() {
Review Comment:
@Cintu07 this is causing the miri to fail
```
test
buffer::mutable::tests::try_collect_bool_reports_a_len_it_cannot_reserve ...
stderr ───
warning: extern crate `criterion` is unused in crate `arrow_buffer`
--> arrow-buffer/src/lib.rs:18:1
|
18 | //! Low-level buffer abstractions for [Apache Arrow
Rust](https://docs.rs/arrow)
| ^
|
= help: remove the dependency or add `use criterion as _;` to the
crate root
= note: requested on the command line with `--force-warn
unused-crate-dependencies`
error: resource exhaustion: tried to allocate more memory than available
to compiler
-->
/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/raw_vec/mod.rs:568:13
|
568 | self.alloc.allocate(new_layout)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ resource exhaustion
occurred here
|
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]