sunchao commented on pull request #9409:
URL: https://github.com/apache/arrow/pull/9409#issuecomment-773490122
> Calling mem::forget on the Vec<Box<dyn ArrayBuilder>> prevents the
vector's destructor from running.
Hmm isn't that the purpose?
```rust
let builders = std::mem::replace(&mut self.field_builders,
Vec::new());
std::mem::forget(builders);
```
the `builders` is forgotten here but the destructor for `self.field_any`
will still be invoked right?
----------------------------------------------------------------
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:
[email protected]