mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
733108b6d4
compute temporary scopes when building MIR, not THIR This accomplishes two things: - Makes the THIR slightly smaller by not attaching a full `TempLifetime` to every expression. - Reduces the number of traversals of the `ScopeTree` by only calling `ScopeTree::temporary_scope` when building MIR for something that needs to be dropped in a temporary scope.