Skip to content
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

Assume masks are correct #385

Merged

Conversation

workingjubilee
Copy link
Member

@workingjubilee workingjubilee commented Dec 14, 2023

This allows miri to detect when they are not, and may be exploited by LLVM during optimization. Closes #384.

Are there any other places we want to inject such assumptions? I avoided it on the test_unchecked and such because I think it is likely unnecessary on those cases and may result in aggressive over-optimization, but anywhere it's likely to be called once instead of once-per-element seems like a fine place to put an assume.

This allows miri to detect when they are not, and
may be exploited by LLVM during optimization.
@programmerjake
Copy link
Member

maybe wait till the exposed_provenance issue is fixed?

@calebzulawski calebzulawski merged commit 6ad779c into rust-lang:master Feb 17, 2024
5 of 66 checks passed
calebzulawski added a commit that referenced this pull request Feb 17, 2024
…f-u-and-me"

This reverts commit 6ad779c, reversing
changes made to b2e1bcb.
calebzulawski added a commit that referenced this pull request Feb 17, 2024
Revert #385 and add some minor fixes
calebzulawski added a commit that referenced this pull request Feb 17, 2024
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.

UB for certain transmutes could be easier to detect
3 participants