mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
6bb2c5d322
Conventionally in C `*mut T` is a transfer of ownership where `*const T` is a loan, so `*mut T` is likely the more appropriate return type for these functions. Additionally, this more closely mirrors the APIs on `Box` for this sort of functionality. cc #27769