Skip to content

Better generic bounds - #285

Merged
Shnatsel merged 6 commits into
linebender:mainfrom
Shnatsel:better-generics
Jul 27, 2026
Merged

Better generic bounds#285
Shnatsel merged 6 commits into
linebender:mainfrom
Shnatsel:better-generics

Conversation

@Shnatsel

@Shnatsel Shnatsel commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

The relationships that already hold for all types are now encoded in the type system, to allow more things to be expressed in generic code. Adds tests to enforce that this kind of generic code will keep compiling.

Unlike #284 this is not a breaking change because all the relevant traits are sealed (except SimdFrom but the change involving it is non-breaking).

@Shnatsel
Shnatsel added this pull request to the merge queue Jul 27, 2026
Merged via the queue into linebender:main with commit a883a4b Jul 27, 2026
22 checks passed
@Shnatsel
Shnatsel deleted the better-generics branch July 27, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants