about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/lib.rs
diff options
context:
space:
mode:
authorMatthew Jasper <mjjasper1@gmail.com>2023-12-15 15:19:28 +0000
committerMatthew Jasper <mjjasper1@gmail.com>2023-12-21 13:35:56 +0000
commitd437a111f5c08cd85fb5eebecd9d2112a84610a4 (patch)
treef492fa42deeecd3e221acf40250bf6093467e1b8 /compiler/rustc_pattern_analysis/src/lib.rs
parent68d684cbff361cbddf866919bd1b49a89301e242 (diff)
downloadrust-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