Skip to content

Make Mask::splat const #466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2025
Merged

Conversation

clarfonthey
Copy link
Contributor

@clarfonthey clarfonthey commented Jun 13, 2025

This is a small step toward making more methods const.

While removing the Default bound was not strictly necessary, I found that it made sense to do given the implementation. Better to mention that it's not used here in the bounds than leave it in.

There are probably other mask methods that could be made const with minimal changes, but I didn't want to touch anything that used intrinsics and/or litter everything with const_eval_select to make it work.

@calebzulawski calebzulawski merged commit 704a1a9 into rust-lang:master Jun 13, 2025
59 checks passed
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.

3 participants