mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-09 11:48:48 +00:00
8d8d542dfa
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> |
||
---|---|---|
.. | ||
add_custom_impl.rs | ||
add_derive.rs | ||
add_explicit_type.rs | ||
add_impl.rs | ||
add_missing_impl_members.rs | ||
add_new.rs | ||
apply_demorgan.rs | ||
auto_import.rs | ||
change_visibility.rs | ||
early_return.rs | ||
fill_match_arms.rs | ||
flip_binexpr.rs | ||
flip_comma.rs | ||
flip_trait_bound.rs | ||
inline_local_variable.rs | ||
introduce_variable.rs | ||
invert_if.rs | ||
merge_match_arms.rs | ||
move_bounds.rs | ||
move_guard.rs | ||
raw_string.rs | ||
remove_dbg.rs | ||
replace_if_let_with_match.rs | ||
replace_qualified_name_with_use.rs | ||
split_import.rs |