about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-05-26 22:11:33 +0200
committerGitHub <noreply@github.com>2020-05-26 22:11:33 +0200
commit5fb72107999cd32ce809700ac60e35ccb749253f (patch)
treedf4564f464a8809b4f1a7c295d56ef1223188b33 /src/libstd/sys/unix/stack_overflow.rs
parent401b3aefe94723df7c55965f128f83a9f7b233ab (diff)
parent91dcbbbf50baa02d0757085bb5a9bd69bae5a5a4 (diff)
downloadrust-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