rust/crates/ide_assists/src/handlers
bors[bot] a871da3693
Merge #10529
10529: Generate `PartialOrd` implementations r=Veykril a=yoshuawuyts

_co-authored with `@rylev_`

This closes #5946 (which should've been closed already, lol). This PR makes it so we generate `PartialOrd` code implementations where possible. This is the last of Rust's built-in traits that was missing codegen.

After this has been merged we should look at moving the tests to a better spot, and maybe cleaning up the implementation somewhat (it's rather copy-pasty at the moment).

Either way, this finishes up the functionality. Thanks heaps!

Co-authored-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2021-10-12 17:32:58 +00:00
..
add_explicit_type.rs Remove inherent methods from ast node that carry semantic meaning 2021-09-26 16:49:03 +02:00
add_lifetime_to_type.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
add_missing_impl_members.rs
add_missing_match_arms.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
add_return_type.rs Make selections in assists with trailing/leading whitespace more forgiving 2021-10-12 14:41:59 +02:00
add_turbo_fish.rs
apply_demorgan.rs Make selections in assists with trailing/leading whitespace more forgiving 2021-10-12 14:41:59 +02:00
auto_import.rs
change_visibility.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
convert_bool_then.rs Parenthesize expressions in if_to_bool_then assist where required 2021-10-01 12:19:01 +02:00
convert_comment_block.rs
convert_integer_literal.rs
convert_into_to_from.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
convert_iter_for_each_to_for.rs Make selections in assists with trailing/leading whitespace more forgiving 2021-10-12 14:41:59 +02:00
convert_to_guarded_return.rs internal: more reasonable grammar for blocks 2021-09-26 19:16:09 +03:00
convert_tuple_struct_to_named_struct.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
convert_while_to_loop.rs Replace if let Some(_) = foo with if foo.is_some() 2021-10-05 09:00:18 +11:00
destructure_tuple_binding.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
expand_glob_import.rs
extract_function.rs Merge #10532 2021-10-12 17:24:50 +00:00
extract_struct_from_enum_variant.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
extract_type_alias.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
extract_variable.rs Make selections in assists with trailing/leading whitespace more forgiving 2021-10-12 14:41:59 +02:00
fix_visibility.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
flip_binexpr.rs Make selections in assists with trailing/leading whitespace more forgiving 2021-10-12 14:41:59 +02:00
flip_comma.rs
flip_trait_bound.rs
generate_constant.rs cleanup 2021-10-06 10:14:12 +08:00
generate_default_from_enum_variant.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
generate_default_from_new.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
generate_deref.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
generate_derive.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
generate_enum_is_method.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
generate_enum_projection_method.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
generate_from_impl_for_enum.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
generate_function.rs Merge #10440 2021-10-05 08:58:40 +00:00
generate_getter.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
generate_impl.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
generate_is_empty_from_len.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
generate_new.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
generate_setter.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
inline_call.rs Make selections in assists with trailing/leading whitespace more forgiving 2021-10-12 14:41:59 +02:00
inline_local_variable.rs Make selections in assists with trailing/leading whitespace more forgiving 2021-10-12 14:41:59 +02:00
introduce_named_generic.rs
introduce_named_lifetime.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
invert_if.rs Make selections in assists with trailing/leading whitespace more forgiving 2021-10-12 14:41:59 +02:00
merge_imports.rs
merge_match_arms.rs
move_bounds.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
move_from_mod_rs.rs Make selections in assists with trailing/leading whitespace more forgiving 2021-10-12 14:41:59 +02:00
move_guard.rs Merge iter_for_each_to_for and for_to_iter_for_each assists modules 2021-09-21 10:34:11 +02:00
move_module_to_file.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
move_to_mod_rs.rs Make selections in assists with trailing/leading whitespace more forgiving 2021-10-12 14:41:59 +02:00
pull_assignment_up.rs Replace if let with match where appropriate 2021-10-05 09:00:21 +11:00
qualify_path.rs Replace if let with match where appropriate 2021-10-05 09:00:21 +11:00
raw_string.rs
remove_dbg.rs internal: more reasonable grammar for blocks 2021-09-26 19:16:09 +03:00
remove_mut.rs
remove_unused_param.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
reorder_fields.rs
reorder_impl.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
replace_derive_with_manual_impl.rs Simplify generated PartialOrd code 2021-10-12 17:44:57 +02:00
replace_if_let_with_match.rs Make selections in assists with trailing/leading whitespace more forgiving 2021-10-12 14:41:59 +02:00
replace_let_with_if_let.rs Expose HasSource::source through Semantics with caching behaviour 2021-10-07 15:00:14 +02:00
replace_qualified_name_with_use.rs
replace_string_with_char.rs
replace_try_expr_with_match.rs fix tests 2021-10-06 20:45:18 +02:00
sort_items.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
split_import.rs
toggle_ignore.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
unmerge_use.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
unwrap_block.rs internal: more reasonable grammar for blocks 2021-09-26 19:16:09 +03:00
wrap_return_type_in_result.rs Remove inherent methods from ast node that carry semantic meaning 2021-09-26 16:49:03 +02:00