rust-analyzer/crates/ra_assists/src/handlers
bors[bot] 8d8d542dfa
Merge #3108
3108: Magic Completion for `impl Trait for` Associated Items r=matklad a=kdelorey

# Summary
This PR adds a set of magic completions to auto complete associated trait items (functions/consts/types). 

![Associated Trait Impl](https://user-images.githubusercontent.com/2295721/74493144-d8f1af00-4e96-11ea-93a4-82725bf89646.gif)

## Notes
Since the assist and completion share the same logic when figuring out the associated items that are missing, a shared utility was created in the `ra_assists::utils` module.

Resolves #1046 

As this is my first PR to the rust-analyzer project, I'm new to the codebase, feedback welcomed!

Co-authored-by: Kevin DeLorey <2295721+kdelorey@users.noreply.github.com>
2020-02-17 09:34:08 +00:00
..
add_custom_impl.rs Name assist handlers 2020-02-07 17:28:02 +01:00
add_derive.rs Name assist handlers 2020-02-07 17:28:02 +01:00
add_explicit_type.rs Name assist handlers 2020-02-07 17:28:02 +01:00
add_impl.rs Name assist handlers 2020-02-07 17:28:02 +01:00
add_missing_impl_members.rs Formatted changes. 2020-02-11 09:40:08 -06:00
add_new.rs Fix add_new assist (kind of) 2020-02-07 18:28:11 +01:00
apply_demorgan.rs Introduce assists utils 2020-02-07 17:28:02 +01:00
auto_import.rs Do not collect all traits 2020-02-12 23:27:19 +02:00
change_visibility.rs Name assist handlers 2020-02-07 17:28:02 +01:00
early_return.rs Introduce assists utils 2020-02-07 17:28:02 +01:00
fill_match_arms.rs Add or- and parenthesized-patterns 2020-02-09 22:06:15 +00:00
flip_binexpr.rs Name assist handlers 2020-02-07 17:28:02 +01:00
flip_comma.rs Name assist handlers 2020-02-07 17:28:02 +01:00
flip_trait_bound.rs Name assist handlers 2020-02-07 17:28:02 +01:00
inline_local_variable.rs Name assist handlers 2020-02-07 17:28:02 +01:00
introduce_variable.rs Name assist handlers 2020-02-07 17:28:02 +01:00
invert_if.rs Introduce assists utils 2020-02-07 17:28:02 +01:00
merge_match_arms.rs Add or- and parenthesized-patterns 2020-02-09 22:06:15 +00:00
move_bounds.rs Name assist handlers 2020-02-07 17:28:02 +01:00
move_guard.rs Add or- and parenthesized-patterns 2020-02-09 22:06:15 +00:00
raw_string.rs Name assist handlers 2020-02-07 17:28:02 +01:00
remove_dbg.rs Name assist handlers 2020-02-07 17:28:02 +01:00
replace_if_let_with_match.rs Name assist handlers 2020-02-07 17:28:02 +01:00
replace_qualified_name_with_use.rs Introduce AttrKind 2020-02-12 16:44:52 +02:00
split_import.rs Name assist handlers 2020-02-07 17:28:02 +01:00