-
Notifications
You must be signed in to change notification settings - Fork 352
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
Spurious "Undefined Behavior" Error #2580
Comments
I get that this error is unexpected, but 'spurious' sounds like a claim that this is a false positive? Here's a version that avoids unsafe, and it also makes Miri happy. |
The original code is probably just buggy -- each time you write Though I admit I don't entirely understand why the |
I did some more investigation, see IRLO for details. But Miri is right, the original code is buggy -- |
Running this code snippet (playground) with miri:
...results in this diagnostic:
I'm using the miri packaged with
rustc 1.66.0-nightly (ce7f0f1aa 2022-09-28)
.Discussion on Zulip here: https://rust-lang.zulipchat.com/#narrow/stream/269128-miri/topic/Diagnosing.20retag.20in.20.60.2Eawait.60
The text was updated successfully, but these errors were encountered: