-
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
Make fns from other crates with RPITIT work for -Zlower-impl-trait-in-trait-to-assoc-ty #108923
Conversation
I would appreciate if you left a bit more explanation left in comments (or in the PR summary, which is empty) for why the various fixes that you add actually fix the problems that they do. Sometimes it's hard to work backwards to see why these changes you've made actually fix the ICEs they do. |
Re: Last comment asking for a better PR summary -- this is a draft, I guess, so maybe it wasn't ready yet. But I did see |
@compiler-errors thanks for the review. I think now the changes are trivial, but basically the same as always, trying to access HIR for the def_id of the RPITIT that doesn't have HIR, so needed to avoid doing that in some cases by invoking queries and feeding other queries in other cases. Also, I meant you to review. Marking it as a draft because it should go after these other PRs that I have opened are merged. |
☔ The latest upstream changes (presumably #108977) made this pull request unmergeable. Please resolve the merge conflicts. |
a84e500
to
931aebb
Compare
☔ The latest upstream changes (presumably #108700) made this pull request unmergeable. Please resolve the merge conflicts. |
931aebb
to
fca4191
Compare
@compiler-errors, this one was already ready for a review :). |
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.
r=me with a comment please
☔ The latest upstream changes (presumably #109057) made this pull request unmergeable. Please resolve the merge conflicts. |
fca4191
to
a4e4037
Compare
@bors r=compiler-errors |
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#108722 (Support for Fuchsia RISC-V target) - rust-lang#108880 (Remove tests/ui/impl-trait/in-trait/new-lowering-strategy in favor of using revisions on existing tests) - rust-lang#108909 (Fix object safety checks for new RPITITs) - rust-lang#108915 (Remove some direct calls to local_def_id_to_hir_id on diagnostics) - rust-lang#108923 (Make fns from other crates with RPITIT work for -Zlower-impl-trait-in-trait-to-assoc-ty) - rust-lang#109101 (Fall back to old metadata computation when type references errors) - rust-lang#109105 (Don't ICE for late-bound consts across `AnonConstBoundary`) - rust-lang#109110 (Don't codegen impossible to satisfy impls) - rust-lang#109116 (Emit diagnostic when calling methods on the unit type in method chains) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Only the last two commits are meaningful.
r? @compiler-errors