Skip to content

Conversation

@dcreager
Copy link
Member

This PR updates the mdtests that test how our generics solver interacts with our new constraint set implementation. Because the rendering of a constraint set can get long, this standardizes on putting the revealed assertion on a separate line. We also add a static_assert test for each constraint set to verify that they are all coerced into simple bools correctly.

This is a pure reformatting (not even a refactoring!) that changes no behavior. I've pulled it out of #20093 to reduce the amount of effort that will be required to review that PR.

@dcreager dcreager added internal An internal refactor or improvement ty Multi-file analysis & type inference labels Oct 28, 2025
@dcreager dcreager changed the base branch from dcreager/subtype-given-typevars to main October 28, 2025 18:36
@dcreager dcreager force-pushed the dcreager/refactor-constraint-mdtests branch from afee27e to fd7f4b5 Compare October 28, 2025 18:36
@dcreager
Copy link
Member Author

Rebased this onto main — it doesn't actually depend on anything in #21068, and since it's got a ✔️ I'll go ahead and merge this

@dcreager dcreager merged commit 17850ee into main Oct 28, 2025
73 of 75 checks passed
@dcreager dcreager deleted the dcreager/refactor-constraint-mdtests branch October 28, 2025 18:59
dcreager added a commit that referenced this pull request Oct 28, 2025
…straint-sets

* dcreager/subtype-given-typevars:
  better comment
  restructure a bit
  better names/comments
  simplify before implication
  two typevars!
  [ty] Reformat constraint set mdtests (#21111)
  [ty] Move constraint set mdtest functions into `ConstraintSet` class (#21108)
  Avoid sending an unnecessary "clear diagnostics" message for clients supporting pull diagnostics (#21105)
  Update Rust crate ignore to v0.4.24 (#20979)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants