about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-03-16 16:35:34 +0000
committerGitHub <noreply@github.com>2022-03-16 16:35:34 +0000
commita57fee6b6f124ad6323b54417932ead0d1f2122b (patch)
treeba9d971788edc89fc3cd9f7839d512a8b721c75f /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent641c6e5b324eeb6682823af1f9a70967ab53d076 (diff)
parent14e20047c4af5d26dd55984ef4eefc67f1e11b41 (diff)
downloadrust-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 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions