Add a "by reference" adaptor for AllocRef#71442
Conversation
|
I've been thinking about how we're going to integrate This would allow us to have a blanket I don't think it will cause any issues in practice since all currently existing allocators use |
|
While it would be possible to simply implement
I think this should be discussed in deepth in the WG's repository. Even if we decide to change the signature to |
|
@bors r+ rollup |
|
📌 Commit e602680 has been approved by |
Rollup of 7 pull requests Successful merges: - rust-lang#70633 (Confusing suggestion on incorrect closing `}`) - rust-lang#71404 (Don't fuse Chain in its second iterator) - rust-lang#71408 (Check code blocks tags) - rust-lang#71442 (Add a "by reference" adaptor for `AllocRef`) - rust-lang#71446 (Only use read_unaligned in transmute_copy if necessary) - rust-lang#71470 (Fix doc links) - rust-lang#71479 (add back Scalar::null_ptr) Failed merges: r? @ghost
Fixes rust-lang/wg-allocators#53
r? @Amanieu