rust/crates/ide-assists/src/handlers
bors 60d952e902 Auto merge of #14979 - DropDemBits:structure-snippets-migrate-1, r=Veykril
internal: Migrate some assists to use the structured snippet API

Migrates the following assists:

- `add_missing_impl_members`
- `extract_type_alias`

As an additional requirement, these assists are also migrated to use the mutable AST API, since otherwise there would be overlapping `Indel` spans
2023-06-09 19:26:01 +00:00
..
add_braces.rs
add_explicit_type.rs Add flag to disallow opaque types for DisplayTarget::SourceCode 2023-04-12 19:03:48 +09:00
add_label_to_loop.rs
add_lifetime_to_type.rs
add_missing_impl_members.rs Migrate add_missing_impl_members to mutable ast 2023-06-05 00:23:10 -04:00
add_missing_match_arms.rs
add_return_type.rs fix some typos 2023-05-01 14:53:25 +08:00
add_turbo_fish.rs
apply_demorgan.rs
auto_import.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
change_visibility.rs
convert_bool_then.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
convert_comment_block.rs
convert_integer_literal.rs
convert_into_to_from.rs
convert_iter_for_each_to_for.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
convert_let_else_to_match.rs
convert_match_to_let_else.rs
convert_named_struct_to_tuple_struct.rs Add render configs for memory layout hovers 2023-05-30 18:36:06 +02:00
convert_nested_function_to_closure.rs
convert_to_guarded_return.rs Spelling 2023-04-19 09:45:55 -04:00
convert_tuple_struct_to_named_struct.rs Add render configs for memory layout hovers 2023-05-30 18:36:06 +02:00
convert_two_arm_bool_match_to_matches_macro.rs
convert_while_to_loop.rs
destructure_tuple_binding.rs Fix pattern type mismatch in tuples 2023-05-04 16:03:36 +03:30
desugar_doc_comment.rs
expand_glob_import.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
extract_expressions_from_format_string.rs
extract_function.rs Emit '_ for lifetime generics in HirDisplay 2023-06-05 10:55:47 +03:30
extract_module.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
extract_struct_from_enum_variant.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
extract_type_alias.rs Migrate extract_type_alias to mutable ast 2023-06-05 00:24:12 -04:00
extract_variable.rs fix: Fix receiver adjustments for extract_variable assist 2023-04-11 14:01:23 +02:00
fix_visibility.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
flip_binexpr.rs
flip_comma.rs
flip_trait_bound.rs
generate_constant.rs Add flag to disallow opaque types for DisplayTarget::SourceCode 2023-04-12 19:03:48 +09:00
generate_default_from_enum_variant.rs
generate_default_from_new.rs
generate_delegate_methods.rs Auto merge of #14842 - alibektas:internal/ast-make-improve, r=Veykril 2023-05-30 16:09:46 +00:00
generate_deref.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
generate_derive.rs generate_derive no longer breaks indentation 2023-05-10 16:35:43 +04:00
generate_documentation_template.rs Spelling 2023-04-19 09:45:55 -04:00
generate_enum_is_method.rs
generate_enum_projection_method.rs
generate_enum_variant.rs Add flag to disallow opaque types for DisplayTarget::SourceCode 2023-04-12 19:03:48 +09:00
generate_from_impl_for_enum.rs
generate_function.rs Infer return type for async function in generate_function 2023-06-09 00:32:52 +09:00
generate_getter.rs Spelling 2023-04-19 09:45:55 -04:00
generate_impl.rs
generate_is_empty_from_len.rs
generate_new.rs Spelling 2023-04-19 09:45:55 -04:00
generate_setter.rs
inline_call.rs
inline_const_as_literal.rs fix: use render_eval instead of inlined expr 2023-06-06 12:08:11 +02:00
inline_local_variable.rs
inline_macro.rs Spelling 2023-04-19 09:45:55 -04:00
inline_type_alias.rs
introduce_named_generic.rs
introduce_named_lifetime.rs Spelling 2023-04-19 09:45:55 -04:00
invert_if.rs
merge_imports.rs
merge_match_arms.rs Fix pattern type mismatch in tuples 2023-05-04 16:03:36 +03:30
move_bounds.rs
move_const_to_impl.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
move_from_mod_rs.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
move_guard.rs
move_module_to_file.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
move_to_mod_rs.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
number_representation.rs
promote_local_to_const.rs Add flag to disallow opaque types for DisplayTarget::SourceCode 2023-04-12 19:03:48 +09:00
pull_assignment_up.rs Spelling 2023-04-19 09:45:55 -04:00
qualify_method_call.rs Spelling 2023-04-19 09:45:55 -04:00
qualify_path.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
raw_string.rs update assist to include more literals 2023-06-06 00:34:00 +02:00
remove_dbg.rs
remove_mut.rs
remove_parentheses.rs Spelling 2023-04-19 09:45:55 -04:00
remove_unused_param.rs Spelling 2023-04-19 09:45:55 -04:00
reorder_fields.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
reorder_impl_items.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
replace_arith_op.rs
replace_derive_with_manual_impl.rs Migrate add_missing_impl_members to mutable ast 2023-06-05 00:23:10 -04:00
replace_if_let_with_match.rs
replace_let_with_if_let.rs
replace_method_eager_lazy.rs
replace_named_generic_with_impl.rs Improve assist to filter invalid params 2023-06-02 12:46:01 +02:00
replace_qualified_name_with_use.rs
replace_string_with_char.rs Spelling 2023-04-19 09:45:55 -04:00
replace_try_expr_with_match.rs
replace_turbofish_with_explicit_type.rs Add flag to disallow opaque types for DisplayTarget::SourceCode 2023-04-12 19:03:48 +09:00
sort_items.rs Restrict "sort items" assist inside Impl & Trait 2023-04-17 12:36:32 +02:00
split_import.rs
toggle_ignore.rs
unmerge_match_arm.rs
unmerge_use.rs
unnecessary_async.rs
unqualify_method_call.rs
unwrap_block.rs
unwrap_result_return_type.rs Address code review comments 2023-04-27 03:03:13 +01:00
unwrap_tuple.rs
wrap_return_type_in_result.rs