mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
eaca729e0b
Generalize `adjust_from_tcx` for `Allocation` Previously, `adjust_from_tcx` would take an `Allocation` and "adjust allocation from the ones in `tcx` to a custom Machine instance [...]". This PR generalizes this so the Machine instance can also determine the `Bytes` type of the output `Allocation`. r? `@RalfJung`
For more information about how rustc works, see the rustc dev guide.