trait solver: Track canonical response universe assumptions - #159987
Open
Dnreikronos wants to merge 1 commit into
Open
trait solver: Track canonical response universe assumptions#159987Dnreikronos wants to merge 1 commit into
Dnreikronos wants to merge 1 commit into
Conversation
Collaborator
|
r? @nnethercote rustbot has assigned @nnethercote. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
Dnreikronos
force-pushed
the
trait_solver/canonical_response_assumptions
branch
from
July 27, 2026 01:53
8402992 to
53bab87
Compare
This comment has been minimized.
This comment has been minimized.
Dnreikronos
marked this pull request as draft
July 27, 2026 02:00
Canonical responses can return query-created placeholders through opaque type constraints. Record empty assumptions when recreating those universes in the caller so eager placeholder handling does not ICE.
Dnreikronos
force-pushed
the
trait_solver/canonical_response_assumptions
branch
from
July 27, 2026 02:01
53bab87 to
698320c
Compare
Dnreikronos
marked this pull request as ready for review
July 27, 2026 11:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #159889
Canonical responses recreate universes for placeholders created while evaluating a query. Region constraints are handled inside the query, but opaque type constraints can still carry those placeholders back to the caller. Without an assumptions entry, eager placeholder handling hits the
unwrap()inget_placeholder_assumptions.Record empty assumptions when recreating response universes under
-Zassumptions-on-binders. idk if empty assumptions is the final shape irl, but imo keeping this next tocreate_next_universeis the right local fix. It restores the invariant where the universe enters the caller and matches bookkeeping from other binder entry paths. fyi the issue repro now reports E0277 instead of ICEing.