-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Mention traits and types involved in unstable trait upcasting #96378
Conversation
r? @nagisa (rust-highfive has picked a reviewer for you, use r? to override) |
@@ -1,20 +0,0 @@ | |||
error[E0310]: the parameter type `A` may not live long enough |
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.
Is this file supposed to be deleted?
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.
No, but it keeps showing up every time I make a new PR. I'll revert it...
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.
I asked because I had the same problem locally and I could not understand why
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.
I think it might've just been a file that got deleted but the change never made it to master. It's probably happening for everyone 👀
This is nice. r=me after a rebase. |
986e350
to
0de7568
Compare
@bors r=nagisa |
📌 Commit 0de7568 has been approved by |
Rollup of 6 pull requests Successful merges: - rust-lang#94639 (Suggest dereferencing non-lval mutable reference on assignment) - rust-lang#95979 (update coherence docs, fix generator + opaque type ICE) - rust-lang#96378 (Mention traits and types involved in unstable trait upcasting) - rust-lang#96917 (Make HashMap fall back to RtlGenRandom if BCryptGenRandom fails) - rust-lang#97101 (Add tracking issue for ExitCode::exit_process) - rust-lang#97123 (Clean fix for rust-lang#96223) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #95972 by printing the traits being upcasted and the types being coerced that cause that upcasting...
the poor span mentioned in the original issue has nothing to do with trait upcasting diagnostic here...
I don't think I can solve that issue in general without fixing the ObligationCauseCode and span that gets passed into Coerce.