Skip to content

Conversation

@JohnTitor
Copy link
Member

@JohnTitor JohnTitor commented Feb 3, 2026

Fixes #151631
r? @fmease

I'd recommend reviewing commit-by-commit, the diff is less-readable to address a cyclic issue.

@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 Feb 3, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 3, 2026

fmease is currently at their maximum review capacity.
They may take a while to respond.

if !type_const_stack.insert(uv.def) {
let guar = tcx.dcx().span_err(
tcx.def_span(uv.def),
"cycle detected when evaluating type-level constant",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we should detect a cyclic error in this place though, maybe we can handle it better?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ICE: Panic in typeck with generic_const_items and impl Trait associated const equality

3 participants