Skip to content

feat: improve assoc. item completion in trait impls #11938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2022
Merged

feat: improve assoc. item completion in trait impls #11938

merged 2 commits into from
Apr 8, 2022

Conversation

jonas-schievink
Copy link
Contributor

Account for macro-generated items, increase the score of these completions since they're very relevant, and allow them to trigger when the cursor is directly in the assoc. item list without requiring further input.

screenshot-2022-04-08-18:12:06

Part of #11860

bors r+

bors bot added a commit that referenced this pull request Apr 8, 2022
11938: feat: improve assoc. item completion in trait impls r=jonas-schievink a=jonas-schievink

Account for macro-generated items, increase the score of these completions since they're very relevant, and allow them to trigger when the cursor is directly in the assoc. item list without requiring further input.

![screenshot-2022-04-08-18:12:06](https://user-images.githubusercontent.com/1786438/162481277-2a0d2f21-dc20-4452-804d-6370766216b6.png)

Part of #11860

bors r+

Co-authored-by: Jonas Schievink <[email protected]>
@bors
Copy link
Contributor

bors bot commented Apr 8, 2022

Build failed:

@jonas-schievink
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 8, 2022

@bors bors bot merged commit 63acf72 into rust-lang:master Apr 8, 2022
@jonas-schievink jonas-schievink deleted the trait-impl-compl branch April 8, 2022 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant