Skip to content

Use impl restrictions over hand-sealed traits#529

Open
jhpratt wants to merge 1 commit into
rust-lang:masterfrom
jhpratt:master
Open

Use impl restrictions over hand-sealed traits#529
jhpratt wants to merge 1 commit into
rust-lang:masterfrom
jhpratt:master

Conversation

@jhpratt
Copy link
Copy Markdown
Member

@jhpratt jhpratt commented May 30, 2026

As part of rust-lang/rust#105077, I'm beginning to use #![feature(impl_restriction)] within the standard library. As portable SIMD is relied upon by the standard library (as a submodule), I thought I would start here.

I have tested the feature myself in a number of situations and have found it works as expected. Feel free to ask any questions you may have.

@jhpratt
Copy link
Copy Markdown
Member Author

jhpratt commented May 30, 2026

Note: rustdoc does not currently have support for impl restrictions, so if that's a concern then you'll want to hold off.

@calebzulawski
Copy link
Copy Markdown
Member

Because std::simd is just a module of the core library, we can't actually use this feature until core does.

@jhpratt
Copy link
Copy Markdown
Member Author

jhpratt commented May 30, 2026

Gotcha. rust-lang/rust#157170 will need to be merged first then.

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