diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-03-01 22:13:03 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-03-07 23:11:18 +1100 |
| commit | 570376c49647d8565a639e9e190916fe2246c26f (patch) | |
| tree | a9d10d5c1be6084f4c9914512b86dce40d20741e /compiler/rustc_pattern_analysis/src/constructor.rs | |
| parent | 51f483944db3675eba6fd82e0c2cc2b57b04a4e0 (diff) | |
| download | rust-570376c49647d8565a639e9e190916fe2246c26f.tar.gz rust-570376c49647d8565a639e9e190916fe2246c26f.zip | |
Don't pass a break scope to `Builder::break_for_else`
This method would previously take a target scope, and then verify that it was equal to the scope on top of the if-then scope stack. In practice, this means that callers have to go out of their way to pass around redundant scope information that's already on the if-then stack. So it's easier to just retrieve the correct scope directly from the if-then stack, and simplify the other code that was passing it around.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/constructor.rs')
0 files changed, 0 insertions, 0 deletions
