Rollup merge of #134491 - compiler-errors:dtor-tweaks, r=lqd

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.
This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-12-19 16:48:11 +08:00 committed by GitHub
commit b60f0674fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available