-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Suggest to swap a struct and a trait in trait impls #97812
Suggest to swap a struct and a trait in trait impls #97812
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
5183c5b
to
9db03b9
Compare
@petrochenkov |
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.
If we could either move the logic out of the way so that the code is easier to read, or simplify and only signal that we're resolving an impl
item header and emit not a structured suggestion but a note, it would be better.
@petrochenkov are you concerned with the growth of DiagnosticMetadata
, the added logic, or both?
src/test/ui/suggestions/suggest-swapping-self-ty-and-trait-edition-2021.stderr
Outdated
Show resolved
Hide resolved
r? @estebank |
@rustbot ready |
@bors r+ |
📌 Commit 5639e52 has been approved by |
Rollup of 6 pull requests Successful merges: - rust-lang#96868 (Stabilize explicit_generic_args_with_impl_trait) - rust-lang#97703 (some additional `need_type_info.rs` cleanup) - rust-lang#97812 (Suggest to swap a struct and a trait in trait impls) - rust-lang#97958 (ExitStatus docs fixups) - rust-lang#97967 (Mention `infer::Trace` methods on `infer::At` methods' docs) - rust-lang#97972 (Update #[doc(html_playground_url)] documentation to mention what the request will be) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
closes #89590