-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Remove unreasonable help message for auto trait #105817
Remove unreasonable help message for auto trait #105817
Conversation
r? @TaKO8Ki (rustbot has picked a reviewer for you, use r? to override) |
There is another solution, we just emit E0380, and use rust/compiler/rustc_parse/src/parser/item.rs Line 876 in 49c2279
Then, in later parts we don't need care about auto trait, since we have made sure there will be no assoc items in it. I'm not sure whether this is a desirable solution, but it seems more completed than our current case by case fix. @TaKO8Ki how do you think? |
I tried this solution, it's also a fix for #105732: Not sure which fix is better. |
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.
@bors r+ rollup
@bors r+ rollup |
📌 Commit 359d667d19436fae7028c79bc911155f17c0a7af has been approved by It is now in the queue for this repository. |
⌛ Testing commit 359d667d19436fae7028c79bc911155f17c0a7af with merge 14e7a8c003fd680addec20f14c51c2cf63cadf6e... |
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
359d667
to
90753de
Compare
This failure is unrelated to the PR. @bors r=TaKO8Ki |
…iaskrgr Rollup of 3 pull requests Successful merges: - rust-lang#105817 (Remove unreasonable help message for auto trait) - rust-lang#105994 (Add regression test for rust-lang#99647) - rust-lang#106066 (Always suggest as `MachineApplicable` in `recover_intersection_pat`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #105788