diff options
| author | Morgan Thomas <corp@m0rg.dev> | 2022-03-12 08:44:37 -0800 |
|---|---|---|
| committer | Morgan Thomas <corp@m0rg.dev> | 2022-03-12 08:54:06 -0800 |
| commit | 3fafbca32e8671a38aef9d6cfc8ad0f05e4a00c9 (patch) | |
| tree | 0dca2e2bc084cf0cba0ab6906885be4f3c312d60 /src/test/codegen/src-hash-algorithm | |
| parent | 5fcf979f8a09e6504bbe540cbff6d640b959935c (diff) | |
| download | rust-3fafbca32e8671a38aef9d6cfc8ad0f05e4a00c9.tar.gz rust-3fafbca32e8671a38aef9d6cfc8ad0f05e4a00c9.zip | |
fix: "Extract to function" assist preserves `break` and `continue` labels
Adds a label / lifetime parameter to `ide_assists::handlers::extract_function::FlowKind::{Break, Continue}`, adds support for emitting labels to `syntax::ast::make::{expr_break, expr_continue}`, and implements the required machinery to let `extract_function` make use of them.
This does modify the external API of the `syntax` crate, but the changes there are simple, not used outside `ide_assists`, and, well, we should probably support emitting `break` and `continue` labels through `syntax` anyways, they're part of the language spec.
Closes #11413.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
