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

UB for certain transmutes could be easier to detect #384

Closed
workingjubilee opened this issue Dec 13, 2023 · 0 comments · Fixed by #385 or #393
Closed

UB for certain transmutes could be easier to detect #384

workingjubilee opened this issue Dec 13, 2023 · 0 comments · Fixed by #385 or #393
Labels
C-feature-request Category: a feature request, i.e. not implemented / a PR

Comments

@workingjubilee
Copy link
Member

We could insert core::intrinsics::assume or core::hint::unreachable_unchecked or something?

Ideally this would not pass miri: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=3b0672dc5b90a1f626050388bb0478cb

@workingjubilee workingjubilee added the C-feature-request Category: a feature request, i.e. not implemented / a PR label Dec 13, 2023
@calebzulawski calebzulawski reopened this Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: a feature request, i.e. not implemented / a PR
Projects
None yet
2 participants