rust/crates/ide_assists/src/handlers
Jonas Goronczy c203cd4cb7 Extract struct from enum variant filters generics
Extracting a struct from an enum variant now filters out only the
generic parameters necessary for the new struct.
Bounds will be copied to the new struct, but unneeded ones are not
filtered out.
Extracting bounds in a where clause are still not implemented.
2022-02-12 23:21:41 +01:00
..
add_explicit_type.rs Merge #11112 2022-01-04 21:51:37 +00:00
add_lifetime_to_type.rs
add_missing_impl_members.rs Fix generic type substitution in impl trait with assoc const 2022-01-07 16:41:39 +01:00
add_missing_match_arms.rs adjust test case and stop deleting newline 2021-11-14 20:56:28 +09:00
add_return_type.rs refactor(assist/add_return_type): avoid threading needs_whitespace 2021-12-02 10:46:07 -08:00
add_turbo_fish.rs succinct code 2022-01-07 13:53:42 +00:00
apply_demorgan.rs fix: Fix apply_demorgan assist hanging for certain binary expressions 2022-01-05 22:30:19 +01:00
auto_import.rs Add Semantics::original_ast_node for upmapping nodes out of macro files 2021-11-03 21:12:36 +01:00
change_visibility.rs
convert_bool_then.rs
convert_comment_block.rs Fix some clippy lints 2021-12-17 17:46:20 +02:00
convert_integer_literal.rs
convert_into_to_from.rs Fix some clippy lints 2021-12-17 17:46:20 +02:00
convert_iter_for_each_to_for.rs fix: Complete functions and methods from block level impls 2022-02-01 23:29:40 +01:00
convert_to_guarded_return.rs
convert_tuple_struct_to_named_struct.rs internal: Flatten Definition::ModuleDef variant 2021-11-11 00:05:53 +01:00
convert_while_to_loop.rs fix: defer condition construction 2021-12-04 04:50:06 +09:00
destructure_tuple_binding.rs Avoid collect_vec from itertools 2022-01-02 12:06:14 +02:00
expand_glob_import.rs Reformat code 2022-01-13 21:07:17 +02:00
extract_function.rs rollup match 2022-02-01 22:38:37 +00:00
extract_module.rs Replace folds with for loops 2022-01-02 12:05:35 +02:00
extract_struct_from_enum_variant.rs Extract struct from enum variant filters generics 2022-02-12 23:21:41 +01:00
extract_type_alias.rs
extract_variable.rs removed double matching 2022-01-05 21:16:24 +00:00
fix_visibility.rs internal: Flatten Definition::ModuleDef variant 2021-11-11 00:05:53 +01:00
flip_binexpr.rs
flip_comma.rs
flip_trait_bound.rs
generate_constant.rs
generate_default_from_enum_variant.rs
generate_default_from_new.rs
generate_delegate_methods.rs minor: fixup generate assist priorities 2021-12-13 16:42:21 +01:00
generate_deref.rs
generate_derive.rs
generate_documentation_template.rs refactor: apply suggestions 2022-01-07 14:07:35 +01:00
generate_enum_is_method.rs
generate_enum_projection_method.rs
generate_from_impl_for_enum.rs
generate_function.rs Fix test fixture 2022-02-02 12:42:13 +01:00
generate_getter.rs Don't say "a reference to" for Copy types 2021-12-19 17:28:31 -08:00
generate_impl.rs
generate_is_empty_from_len.rs fix: Complete functions and methods from block level impls 2022-02-01 23:29:40 +01:00
generate_new.rs
generate_setter.rs
inline_call.rs fix: check inline left of binary_expression 2021-11-21 01:48:04 +09:00
inline_local_variable.rs fix: Fix inline local assist not working in let stmt initializer 2021-12-21 14:03:59 +01:00
introduce_named_generic.rs
introduce_named_lifetime.rs
invert_if.rs
merge_imports.rs Use mutable syntax trees in merge_imports, split_imports 2021-11-19 20:02:27 +05:00
merge_match_arms.rs styling fixes 2022-01-14 18:53:28 +00:00
move_bounds.rs
move_from_mod_rs.rs
move_guard.rs Don't add pattern if there is a catch all afterwards 2022-01-03 09:38:45 -08:00
move_module_to_file.rs
move_to_mod_rs.rs
number_representation.rs Fix typo in reformat number assist label 2021-12-21 09:45:20 +02:00
promote_local_to_const.rs
pull_assignment_up.rs
qualify_method_call.rs apply code review suggestions 2021-10-21 23:42:14 -07:00
qualify_path.rs Fix some clippy lints 2021-12-17 17:46:20 +02:00
raw_string.rs
remove_dbg.rs dead code 2021-12-28 19:13:30 +03:00
remove_mut.rs
remove_unused_param.rs internal: Flatten Definition::ModuleDef variant 2021-11-11 00:05:53 +01:00
reorder_fields.rs
reorder_impl.rs
replace_derive_with_manual_impl.rs Merge #11000 2021-12-13 15:43:12 +00:00
replace_if_let_with_match.rs Fix replace_match_with_if_let removing blocks with modifiers 2022-01-03 14:07:34 +01:00
replace_let_with_if_let.rs
replace_qualified_name_with_use.rs Remove duplicate test attribute 2022-01-13 21:08:04 +02:00
replace_string_with_char.rs
replace_try_expr_with_match.rs Use array IntoIter 2021-10-22 09:23:29 +03:00
replace_turbofish_with_explicit_type.rs fixup! rustfmt 2021-10-27 10:58:31 -07:00
sort_items.rs
split_import.rs Use mutable syntax trees in merge_imports, split_imports 2021-11-19 20:02:27 +05:00
toggle_ignore.rs
unmerge_use.rs Bump deps 2021-12-07 13:15:14 +02:00
unwrap_block.rs fix unwrap_block by removing double trimming 2021-12-18 23:19:53 +01:00
unwrap_result_return_type.rs fix(assist): delete trailing whitespaces 2021-10-19 14:54:29 +02:00
wrap_return_type_in_result.rs