Skip to content

fix: Fix clippy attribute completions always inserting clippy:: #10562

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 3 commits into from
Oct 17, 2021

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Oct 17, 2021

Fixes #7144

@Veykril
Copy link
Member Author

Veykril commented Oct 17, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 17, 2021

@bors bors bot merged commit d9080ad into rust-lang:master Oct 17, 2021
@Veykril Veykril deleted the mac-compl branch October 17, 2021 12:38
@Veykril Veykril changed the title fix: Fix clippy attribute completions always prefixing inserting clippy:: fix: Fix clippy attribute completions always inserting clippy:: Oct 17, 2021
@jyn514
Copy link
Member

jyn514 commented Oct 18, 2021

This isn't specific to clippy, right, it works for any tool lint?

@Veykril
Copy link
Member Author

Veykril commented Oct 18, 2021

Technically yes, it would need a slight adjustment to actually filter by the path's qualifier(the tool prefix) as it currently just assumes we only complete clippy lints(which is the case for now).

@jyn514
Copy link
Member

jyn514 commented Oct 18, 2021

Are you sure that's true? I'm pretty sure I've seen RA completing rustdoc lints.

@Veykril
Copy link
Member Author

Veykril commented Oct 18, 2021

Ye I'm pretty sure, we don't generate the lint completions for anything other than rustc and clippy currently -> https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_db/src/helpers/generated_lints.rs

@Veykril
Copy link
Member Author

Veykril commented Oct 18, 2021

I guess we did before judging from your issue #8349

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.

#![allow(clippy:: incorrectly completes with a leading clippy::
2 participants