diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-26 22:11:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-26 22:11:33 +0200 |
| commit | 5fb72107999cd32ce809700ac60e35ccb749253f (patch) | |
| tree | df4564f464a8809b4f1a7c295d56ef1223188b33 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 401b3aefe94723df7c55965f128f83a9f7b233ab (diff) | |
| parent | 91dcbbbf50baa02d0757085bb5a9bd69bae5a5a4 (diff) | |
| download | rust-5fb72107999cd32ce809700ac60e35ccb749253f.tar.gz rust-5fb72107999cd32ce809700ac60e35ccb749253f.zip | |
Rollup merge of #72581 - samrat:allow-desugared-break-in-labeled-block, r=davidtwco
Allow unlabeled breaks from desugared `?` in labeled blocks `?` is desugared into a `break` targeting the innermost `try` scope in which it resides. The `break` however will not have a label. https://github.com/rust-lang/rust/blob/master/src/librustc_ast_lowering/expr.rs#L1560 Since the `target` of the `break` is known, the compiler should not complain about an unlabeled jump for `break`s desugared from `?`. Closes https://github.com/rust-lang/rust/issues/72483
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
