mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 21:26:43 +00:00
Some destructor/drop related tweaks Two random tweaks I got from investigating some stuff around drops in edition 2024: 1. Use the `TypingEnv` of the mir builder, rather than making it over again. 2. Rename the `id` field from `Scope` to `local_id`, to reflect that it's a local id, and remove the `item_local_id()` accessor which just returned the id field.
For more information about how rustc works, see the rustc dev guide.