-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Add diagnostic items for Clippy #142787
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
base: master
Are you sure you want to change the base?
Add diagnostic items for Clippy #142787
Conversation
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me on the compiler side
We don't have a clippy group, so choosing at random. r? @flip1995 |
@bors r+ |
Does r? clippy not work in the Rust repo? 🤔 |
It does. Sorry for the ping 😅 r? Manishearth |
This comment has been minimized.
This comment has been minimized.
@bors r- |
Oh you're right, it does work because it fallback to the clippy team, forgot that it tried that when it doesn't find an adhoc_group with the same name. |
Alternative candidates for a trait implementation are not printed when the trait has a diagnostic name, to avoid printing alternatives for common stdlib traits such as `Copy` or `Debug`. However, this affects all traits for which a diagnostic item is added. Here, the list of alternatives candidates for `Step` does not seem useful, and `Step` is unstable, so this will not be missed.
The failure was really "fun": when a trait expectation is not fulfilled, other types implementing the trait are listed except when the trait is also a diagnostic item. This has been done to prevent a long list of alternate types to be suggested for common traits such as As a consequence, the
I don't think the suggestion was useful to start with. Thoughts? |
I think it's fine. @bors r=Manishearth,Urgau rollup |
…y, r=Manishearth,Urgau Add diagnostic items for Clippy Clippy still uses some paths to access items from the standard library. Adding the missing diagnostic items allows removing the last remaining paths. Closes rust-lang/rust-clippy#5393
Rollup of 7 pull requests Successful merges: - #142502 (rustdoc_json: improve handling of generic args) - #142597 (error on calls to ABIs that cannot be called) - #142785 (fix(linkcheck): Build using the lockfile) - #142787 (Add diagnostic items for Clippy) - #142788 (add doc(alias("AsciiChar")) to core::ascii::Char) - #142801 (Use gen blocks in the compiler instead of `from_coroutine`) - #142804 (Rename `LayoutS` to `LayoutData` in comments) r? `@ghost` `@rustbot` modify labels: rollup
Clippy still uses some paths to access items from the standard library. Adding the missing diagnostic items allows removing the last remaining paths.
Closes rust-lang/rust-clippy#5393