Skip to content

Conversation

@matthewjasper
Copy link
Contributor

@matthewjasper matthewjasper commented Aug 22, 2025

can_eq in point_at_chain ICEs if it's passed types with escaping bound variables, so we need to check for them, even in error reporting. Since this is just for error reporting simply skip types with escaping bound variables.

closes #145631

@rustbot
Copy link
Collaborator

rustbot commented Aug 22, 2025

r? @davidtwco

rustbot has assigned @davidtwco.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 22, 2025
@jieyouxu jieyouxu added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 25, 2025
`can_eq` ICEs if it's passed types with escaping bound variables, so we
need to handle for them, even in error reporting.
@matthewjasper matthewjasper force-pushed the type-mismatch-bound-vars branch from e1570fe to 608d49a Compare August 25, 2025 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ICE on IntoIterator with lifetimes

5 participants