diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-03-16 16:35:34 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-16 16:35:34 +0000 |
| commit | a57fee6b6f124ad6323b54417932ead0d1f2122b (patch) | |
| tree | ba9d971788edc89fc3cd9f7839d512a8b721c75f /src/test/codegen/src-hash-algorithm | |
| parent | 641c6e5b324eeb6682823af1f9a70967ab53d076 (diff) | |
| parent | 14e20047c4af5d26dd55984ef4eefc67f1e11b41 (diff) | |
| download | rust-a57fee6b6f124ad6323b54417932ead0d1f2122b.tar.gz rust-a57fee6b6f124ad6323b54417932ead0d1f2122b.zip | |
Merge #11694
11694: fix: "Extract to function" assist preserves `break` and `continue` labels r=Veykril a=m0rg-dev
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.
Co-authored-by: Morgan Thomas <corp@m0rg.dev>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
