mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-15 00:37:04 +00:00

- Make temporaries in if-let guards be the same variable in MIR when the guard is duplicated due to or-patterns. - Change the "destruction scope" for match arms to be the arm scope rather than the arm body scope. - Add tests.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.