rust/crates
bors[bot] a57fee6b6f
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>
2022-03-16 16:35:34 +00:00
..
base_db fix clippy::single_char_pattern 2022-03-12 16:50:49 +01:00
cfg Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
flycheck Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
hir Merge #11707 2022-03-14 20:05:46 +00:00
hir_def Merge #11707 2022-03-14 20:05:46 +00:00
hir_expand more clippy fixes: 2022-03-12 16:50:49 +01:00
hir_ty fix const generic panic 2022-03-15 22:34:05 +03:30
ide Rename compound things to variant things 2022-03-16 13:41:47 +01:00
ide_assists broke a test trying to make the diff look better... 2022-03-12 10:35:26 -08:00
ide_completion Revert omitting field completions 2022-03-16 16:41:35 +01:00
ide_db ⬆️ xshell 2022-03-14 14:57:24 +00:00
ide_diagnostics fix clippy::redundant_closure 2022-03-12 16:50:49 +01:00
ide_ssr Disable one of the failing SSR test cases 2022-03-09 02:08:44 +01:00
limit Use compare_exchange_weak in limit::Limit::check 2022-01-28 18:19:35 +03:00
mbe fix clippy::needless_borrow 2022-03-12 16:50:49 +01:00
parser refactor: Rename and move const_arg_path 2022-03-11 22:28:38 +00:00
paths Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
proc_macro_api fix clippy::needless_borrow 2022-03-12 16:50:49 +01:00
proc_macro_srv fix clippy::needless_borrow 2022-03-12 16:50:49 +01:00
proc_macro_test Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
profile Generate AnyHasDocComments node 2022-01-07 12:38:18 +01:00
project_model Update project_model test outputs 2022-03-09 22:34:42 +01:00
rust-analyzer Mark chaining hints as types, since that's what they are 2022-03-16 07:46:09 +02:00
sourcegen ⬆️ xshell 2022-03-14 14:57:24 +00:00
stdx Generate AnyHasDocComments node 2022-01-07 12:38:18 +01:00
syntax fix: "Extract to function" assist preserves break and continue labels 2022-03-12 08:54:06 -08:00
test_utils fix: Allow configuration of colons in inlay-hints 2022-03-11 21:15:36 +01:00
text_edit more clippy fixes: 2022-03-12 16:50:49 +01:00
toolchain Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
tt Track synthetic tokens, to be able to remove them again later 2022-02-08 18:13:18 +01:00
vfs Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
vfs-notify Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00