rust/crates/ide-assists/src/handlers
bors 44ff3c407a Auto merge of #14232 - HKalbasi:mir, r=Veykril
MIR episode 2

This PR adds:
1. `need-mut` and `unused-mut` diagnostics
2. `View mir` command which shows MIR for the body under cursor, useful for debugging
3. MIR lowering for or-patterns and for-loops
2023-03-07 09:49:49 +00:00
..
add_braces.rs fixes 2023-01-21 23:42:11 +05:30
add_explicit_type.rs beginning of MIR 2023-02-27 23:45:54 +03:30
add_label_to_loop.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
add_lifetime_to_type.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
add_missing_impl_members.rs Fix "add missing impl members" assist for impls inside blocks 2023-01-27 16:51:55 +01:00
add_missing_match_arms.rs feat: array match 2023-01-20 10:59:30 +08:00
add_return_type.rs remove needless borrows 2023-01-02 14:52:32 +00:00
add_turbo_fish.rs Migrate assists to format args captures, part 1 2022-10-10 15:56:21 -04:00
apply_demorgan.rs Migrate assists to format args captures, part 1 2022-10-10 15:56:21 -04:00
auto_import.rs remove needless borrows 2023-01-02 14:52:32 +00:00
change_visibility.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
convert_bool_then.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
convert_comment_block.rs Convert pub to pub(crate) 2023-01-12 09:54:48 +01:00
convert_integer_literal.rs Migrate assists to format args captures, part 1 2022-10-10 15:56:21 -04:00
convert_into_to_from.rs Migrate assists to format args captures, part 1 2022-10-10 15:56:21 -04:00
convert_iter_for_each_to_for.rs Simplify 2023-02-27 15:51:45 +01:00
convert_let_else_to_match.rs Migrate assists to format args captures, part 1 2022-10-10 15:56:21 -04:00
convert_match_to_let_else.rs Add BindingId 2023-03-06 21:09:08 +03:30
convert_named_struct_to_tuple_struct.rs Use the fact that Either: AstNode 2023-01-14 15:20:32 +00:00
convert_to_guarded_return.rs Use let-else statements in Convert to guarded return assist 2022-11-01 23:02:10 +00:00
convert_tuple_struct_to_named_struct.rs Use the fact that Either: AstNode 2023-01-14 15:20:32 +00:00
convert_two_arm_bool_match_to_matches_macro.rs Migrate assists to format args captures, part 1 2022-10-10 15:56:21 -04:00
convert_while_to_loop.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
destructure_tuple_binding.rs Migrate assists to format args captures, part 1 2022-10-10 15:56:21 -04:00
desugar_doc_comment.rs move required_hashes into utils 2023-01-16 18:39:16 +01:00
expand_glob_import.rs fix: Order ItemScope::entries results 2022-07-28 19:28:56 +02:00
extract_expressions_from_format_string.rs docs: update assist comment 2023-01-09 12:23:06 +01:00
extract_function.rs Add BindingId 2023-03-06 21:09:08 +03:30
extract_module.rs return value directly from if/else block 2023-01-02 15:02:54 +00:00
extract_struct_from_enum_variant.rs remove unnecessary lazy evaluations 2023-01-02 15:02:54 +00:00
extract_type_alias.rs Use the fact that Either: AstNode 2023-01-14 15:20:32 +00:00
extract_variable.rs Fix extract_variable test 2023-03-04 14:58:58 +01:00
fix_visibility.rs Lower and handle trait aliases in HIR 2023-03-04 00:24:07 +09:00
flip_binexpr.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
flip_comma.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
flip_trait_bound.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
generate_constant.rs Migrate assists to format args captures, part 2 2022-10-12 02:23:35 -04:00
generate_default_from_enum_variant.rs Migrate assists to format args captures, part 2 2022-10-12 02:23:35 -04:00
generate_default_from_new.rs a number of code simplifications 2023-01-10 18:48:51 +00:00
generate_delegate_methods.rs Support generic function in generate_function assist 2023-01-31 21:05:25 +09:00
generate_deref.rs remove useless conversions 2023-01-02 15:02:54 +00:00
generate_derive.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
generate_documentation_template.rs Migrate assists to format args captures, part 2 2022-10-12 02:23:35 -04:00
generate_enum_is_method.rs feat: add multiple getters mode in generate_getter 2022-10-20 16:47:23 +05:30
generate_enum_projection_method.rs Inline all format arguments where possible 2022-12-24 14:36:10 -05:00
generate_enum_variant.rs remove needless borrows 2023-01-02 14:52:32 +00:00
generate_from_impl_for_enum.rs refactor: use generate_trait_impl_text_intransitive for From-like traits 2022-12-17 22:59:30 +08:00
generate_function.rs feat: allow generate_function to generate in different local crate 2023-03-03 18:40:13 +09:00
generate_getter.rs Conditionally add snippet marker. 2023-02-16 10:50:27 +13:00
generate_impl.rs refactor: use generate_trait_impl_text_intransitive for From-like traits 2022-12-17 22:59:30 +08:00
generate_is_empty_from_len.rs Simplify 2023-02-27 15:51:45 +01:00
generate_new.rs Fix typo 2023-03-03 01:12:39 +09:00
generate_setter.rs feat: add multiple getters mode in generate_getter 2022-10-20 16:47:23 +05:30
inline_call.rs Clippy-fix explicit auto-deref 2022-12-23 02:52:14 -05:00
inline_local_variable.rs Add BindingId 2023-03-06 21:09:08 +03:30
inline_macro.rs fix: Insert spaces when inlining macros 2023-02-10 14:22:56 +08:00
inline_type_alias.rs remove needless borrows 2023-01-02 14:52:32 +00:00
introduce_named_generic.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
introduce_named_lifetime.rs Migrate assists to format args captures, part 3 2022-10-12 02:28:41 -04:00
invert_if.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
merge_imports.rs a number of code simplifications 2023-01-10 18:48:51 +00:00
merge_match_arms.rs Migrate assists to format args captures, part 3 2022-10-12 02:28:41 -04:00
move_bounds.rs Fmt 2022-09-02 21:18:36 +00:00
move_const_to_impl.rs Don't escape non-snippets in assist 2023-01-23 00:22:46 +09:00
move_from_mod_rs.rs Migrate assists to format args captures, part 3 2022-10-12 02:28:41 -04:00
move_guard.rs Migrate assists to format args captures, part 3 2022-10-12 02:28:41 -04:00
move_module_to_file.rs Migrate assists to format args captures, part 3 2022-10-12 02:28:41 -04:00
move_to_mod_rs.rs Migrate assists to format args captures, part 3 2022-10-12 02:28:41 -04:00
number_representation.rs Migrate assists to format args captures, part 3 2022-10-12 02:28:41 -04:00
promote_local_to_const.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
pull_assignment_up.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
qualify_method_call.rs Make qualify_method_call RefactorRewrite 2023-01-09 14:26:48 +00:00
qualify_path.rs Migrate assists to format args captures, part 3 2022-10-12 02:28:41 -04:00
raw_string.rs move required_hashes into utils 2023-01-16 18:39:16 +01:00
remove_dbg.rs Support removing nested dbg!()s in remove_dbg 2023-03-01 19:06:05 +09:00
remove_mut.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
remove_parentheses.rs Fix "needs parens" check in remove_parentheses assist 2022-12-13 00:06:00 +00:00
remove_unused_param.rs Import serde derives on converting json to struct 2022-08-06 20:12:21 +04:30
reorder_fields.rs Use the fact that Either: AstNode 2023-01-14 15:20:32 +00:00
reorder_impl_items.rs Run cargo fmt 2022-07-20 15:06:15 +02:00
replace_arith_op.rs Fix replace_arith label 2023-01-17 16:31:34 +02:00
replace_derive_with_manual_impl.rs Test TraitRef equality before generating missing impl method body 2023-01-16 20:55:56 +09:00
replace_if_let_with_match.rs Adjust replace_match_with_if_let applicability range 2023-03-05 16:52:07 +01:00
replace_let_with_if_let.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
replace_method_eager_lazy.rs feature: Make replace_or_with_or_else assists more generally applicable 2023-03-06 22:17:30 +01:00
replace_qualified_name_with_use.rs Restructure find_path into a separate functions for modules and non-module items 2022-09-13 15:15:27 +02:00
replace_string_with_char.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
replace_try_expr_with_match.rs Run cargo fmt 2022-07-20 15:06:15 +02:00
replace_turbofish_with_explicit_type.rs remove useless conversions 2023-01-02 15:02:54 +00:00
sort_items.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
split_import.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
toggle_ignore.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
unmerge_match_arm.rs a number of code simplifications 2023-01-10 18:48:51 +00:00
unmerge_use.rs Fmt 2022-09-02 21:18:36 +00:00
unnecessary_async.rs remove needless borrows 2023-01-02 14:52:32 +00:00
unqualify_method_call.rs Rename assist: convert_ufcs_to_method => unqualify_method_call 2023-01-09 14:23:30 +00:00
unwrap_block.rs fix(ide-assists): unwrap block when it parent is let stmt 2023-01-25 10:25:59 +08:00
unwrap_result_return_type.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
unwrap_tuple.rs Migrate assists to format args captures, part 3 2022-10-12 02:28:41 -04:00
wrap_return_type_in_result.rs Migrate assists to format args captures, part 3 2022-10-12 02:28:41 -04:00