Make report_projection_error more Term agnostic#105633
Conversation
|
r? @oli-obk (rustbot has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
This is the type from the expected const, but we don't carry the type from the LHS of the projection equality predicate. Anyways, not a huge issue, since we always expect these types to be equal (we assert for it in other places, I'm pretty sure).
There was a problem hiding this comment.
It's strange and sad that we don't normalize this unless generic_const_exprs is enabled, but this isn't related to the ICE.
|
@bors r+ rollup |
|
📌 Commit 4935ff583a737c8b4bedc8b1cb9e7d8bd58ee3c8 has been approved by It is now in the queue for this repository. |
|
☔ The latest upstream changes (presumably #104986) made this pull request unmergeable. Please resolve the merge conflicts. |
4935ff5 to
7bf36de
Compare
|
@bors r=oli-obk |
…li-obk Make `report_projection_error` more `Term` agnostic Fixes rust-lang#105632
…li-obk Make `report_projection_error` more `Term` agnostic Fixes rust-lang#105632
…li-obk Make `report_projection_error` more `Term` agnostic Fixes rust-lang#105632
…li-obk Make `report_projection_error` more `Term` agnostic Fixes rust-lang#105632
…iaskrgr Rollup of 11 pull requests Successful merges: - rust-lang#104592 (Ensure async trait impls are async (or otherwise return an opaque type)) - rust-lang#105623 (Fix `-Z print-type-sizes` for generators with discriminant field ordered first) - rust-lang#105627 (Auto traits in `dyn Trait + Auto` are suggestable) - rust-lang#105633 (Make `report_projection_error` more `Term` agnostic) - rust-lang#105683 (Various cleanups to dest prop) - rust-lang#105692 (Add regression test for rust-lang#104678) - rust-lang#105707 (rustdoc: remove unnecessary CSS `kbd { cursor: default }`) - rust-lang#105715 (Do not mention long types in E0599 label) - rust-lang#105722 (more clippy::complexity fixes) - rust-lang#105724 (rustdoc: remove no-op CSS `.scrape-example .src-line-numbers { margin: 0 }`) - rust-lang#105730 (rustdoc: remove no-op CSS `.item-info:before { color }`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #105632