Skip to content

Subtype when normalization returns an infer var#154250

Closed
jdonszelmann wants to merge 1 commit intorust-lang:mainfrom
jdonszelmann:subtype-in-generalize
Closed

Subtype when normalization returns an infer var#154250
jdonszelmann wants to merge 1 commit intorust-lang:mainfrom
jdonszelmann:subtype-in-generalize

Conversation

@jdonszelmann
Copy link
Copy Markdown
Contributor

r? @lcnr

This test previously failed in the new solver. #151746 accidentally fixed. At some point this should be fixed to compile, by making unsizing coercion aware of subtyping constraints, but this commit restores the old behavior from before 151746

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 23, 2026

changes to the core type system

cc @lcnr

@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 Mar 23, 2026
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 23, 2026
@jdonszelmann
Copy link
Copy Markdown
Contributor Author

reverting #151746

@jdonszelmann jdonszelmann deleted the subtype-in-generalize branch March 23, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants