You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/01/20 14:41:40 UTC

[GitHub] [arrow] alamb commented on pull request #9235: ARROW-11291: [Rust] Add extend to MutableBuffer (-25% for aritmetic, -97% for length)

alamb commented on pull request #9235:
URL: https://github.com/apache/arrow/pull/9235#issuecomment-763651758


   Looks like there is an error in the SIMD tests https://github.com/apache/arrow/pull/9235/checks?check_run_id=1733044845
   
   ```
   
   failures:
   
   ---- src/buffer.rs - buffer::MutableBuffer::extend_from_trusted_len_iter (line 1036) stdout ----
   error[E0716]: temporary value dropped while borrowed
    --> src/buffer.rs:1038:12
     |
   5 | let iter = vec![1u32].iter().map(|x| x * 2);
     |            ^^^^^^^^^^                      - temporary value is freed at the end of this statement
     |            |
     |            creates a temporary which is freed while still in use
   6 | let mut buffer = MutableBuffer::new(0);
   7 | unsafe { buffer.extend_from_trusted_len_iter(iter) };
     |                                              ---- borrow later used here
     |
     = note: consider using a `let` binding to create a longer lived value
     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
   
   error: aborting due to previous error
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org