diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2023-12-15 15:19:28 +0000 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2023-12-21 13:35:56 +0000 |
| commit | d437a111f5c08cd85fb5eebecd9d2112a84610a4 (patch) | |
| tree | f492fa42deeecd3e221acf40250bf6093467e1b8 /compiler/rustc_pattern_analysis/src/lib.rs | |
| parent | 68d684cbff361cbddf866919bd1b49a89301e242 (diff) | |
| download | rust-d437a111f5c08cd85fb5eebecd9d2112a84610a4.tar.gz rust-d437a111f5c08cd85fb5eebecd9d2112a84610a4.zip | |
Give temporaries in if let guards correct scopes
- 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.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/lib.rs')
0 files changed, 0 insertions, 0 deletions
