Deriving Clone
and Copy
twice generates bad diagnostics
#131083
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
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
First encountered this with a macro that automatically derived
Clone
andCopy
. The later two errors are pointing to internal implementation details and have wrong spans; they should be removed. They also suggest "consider implementingClone
for this type", which is nonsense.Other cases
No response
Rust Version
1.83.0 nightly on playground
Anything else?
No response
The text was updated successfully, but these errors were encountered: