Smarter about region calculation

This commit is contained in:
Ayaz Hafiz 2022-04-24 10:19:47 -04:00
parent 1e03ab8fe2
commit cd89902e7a
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 13 additions and 7 deletions

View file

@ -596,7 +596,7 @@ pub fn constrain_expr(
Region::span_across(
&loc_cond.region,
// &branches.first().unwrap().region(),
&branches.last().unwrap().region(),
&branches.last().unwrap().pattern_region(),
)
};