rustc_on_unimplemented
should work on specific trait methods
#135117
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-diagnostic-infra
Diagnostics: Issues that affect all diagnostics, or relate to the diagnostic machinery itself.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
rustc_on_unimplemented
should be applicable to specific trait methods, in addition to the trait as a whole. Then, if the error involves calling a specific trait method, the compiler can give a more specific error message.In the specific case of
PartialOrd
, this would also avoid repeating both type names twice.Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: