-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
CTFE validation: handle pointers in str #85332
Conversation
Some changes occured to the CTFE / Miri engine cc @rust-lang/miri |
| | ||
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior. | ||
= note: the raw bytes of the constant (size: 16, align: 8) { | ||
╾───────alloc3────────╼ 01 00 00 00 00 00 00 00 │ ╾──────╼........ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's quite nice. ;) Though in this case, the error is behind a ptr indirection, so you cannot see it here.
@bors r+ |
📌 Commit f1fdbe2 has been approved by |
This comment has been minimized.
This comment has been minimized.
@bors r- you need to make the test emit output for each bitwidth |
Argh that's painful. :( |
@bors r=oli-obk |
📌 Commit 8af76cb has been approved by |
@bors r+ |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 8af76cb has been approved by |
This comment has been minimized.
This comment has been minimized.
@bors r- |
@bors r=oli-obk |
📌 Commit 70c1cf1 has been approved by |
☀️ Test successful - checks-actions |
I also finally learned how I can match some NOTEs in a ui test without matching all of them, and applied that to some const tests in the 2nd commit where I added NOTE because I did not know what I was doing. I can separate this into its own PR if you prefer.
Fixes #83182
r? @oli-obk