-
Notifications
You must be signed in to change notification settings - Fork 13k
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 report_projection_error
more Term
agnostic
#105633
Conversation
r? @oli-obk (rustbot has picked a reviewer for you, use r? to override) |
def: ty::WithOptConstParam::unknown(data.projection_ty.item_def_id), | ||
substs: data.projection_ty.substs, | ||
}, | ||
ct.ty(), |
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.
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).
| ^ expected `1`, found `<T as TraitWAssocConst>::A` | ||
| | ||
= note: expected constant `1` | ||
found constant `<T as TraitWAssocConst>::A` |
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.
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