mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 02:53:43 +00:00
interpret: get_alloc_info: also return mutability This will be needed for https://github.com/rust-lang/miri/pull/3971 This then tuned into a larger refactor where we introduce a new type for the `get_alloc_info` return data, and we move some code to methods on `GlobalAlloc` to avoid duplicating it between the validity check and `get_alloc_info`.
For more information about how rustc works, see the rustc dev guide.