3 ms·
This is a good time to check how your code performs in beta vs stable. This particular case is new in beta and it would be interesting to catch regressions befo
by the_mitsuhiko 3y ago
This is a good time to check how your code performs in beta vs stable. This particular case is new in beta and it would be interesting to catch regressions before they land.
Someone already filed this as a bug: https://github.com/rust-lang/rust/issues/120091 https://github.com/rust-lang/rust/issues/120091
- tialaramex 3y agoThis re-use trick seems clever, but definitely needed more consideration before merging IMO. Re-use where we can determine the size & alignment are a perfect match ought to be a win, but the other cases seem very situational. And The8472's attitude here seems unlikely to lead to a better Rust.
- IshKebab 3y agoYeah I feel like it should reallocate if the size difference is great.