-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Confusing diagnostic when attempting to implementing trait for tuple #67535
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
Comments
The change needs to be made somewhere in the logic of rust/src/librustc_typeck/coherence/orphan.rs Lines 39 to 80 in 0d2817a
The output should have been
|
I see why this happens:
|
Would like to work on this. Excited for my first issue! |
@TroyNeubauer you'll have to check whether the trait itself is foreign, and if so avoid adding the "because tuples are always foreign" and instead say "this is not defined in the current crate because this is a foreign trait". |
…error, r=estebank Implement fix for rust-lang#67535 Implements a fix for rust-lang#67535 r? `@estebank`
Uh oh!
There was an error while loading. Please reload this page.
produces:
Notice how it highlights
std::ops::AddAssign
and saysthis is not defined in the current crate because tuples are always foreign
, despiteAddAssign
have nothing to do with tuples.The text was updated successfully, but these errors were encountered: