rust-analyzer/crates
Morgan Thomas 3fafbca32e 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.
2022-03-12 08:54:06 -08: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 more clippy fixes: 2022-03-12 16:50:49 +01:00
hir_def more clippy fixes: 2022-03-12 16:50:49 +01:00
hir_expand more clippy fixes: 2022-03-12 16:50:49 +01:00
hir_ty more clippy fixes: 2022-03-12 16:50:49 +01:00
ide more clippy fixes: 2022-03-12 16:50:49 +01:00
ide_assists fix: "Extract to function" assist preserves break and continue labels 2022-03-12 08:54:06 -08:00
ide_completion fix clippy::needless_return 2022-03-12 16:50:49 +01:00
ide_db more clippy fixes: 2022-03-12 16:50:49 +01: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 more clippy fixes: 2022-03-12 16:50:49 +01:00
sourcegen Bump MSRV (1.57) 2021-12-16 01:56:12 +05: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