-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Make note of noalias in unsafe reference section #23813
Conversation
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
@bors: r+ rollup |
📌 Commit 8a015e5 has been approved by |
@@ -1237,6 +1237,9 @@ the guarantee that these issues are never caused by safe code. | |||
* Breaking the [pointer aliasing | |||
rules](http://llvm.org/docs/LangRef.html#pointer-aliasing-rules) | |||
with raw pointers (a subset of the rules used by C) | |||
* `&mut` and `&` follow LLVM’s scoped [noalias] model, except if the `&T` |
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's a point just above talking about UnsafeCell
, maybe these could be merged/moved closer together?
@huonw : makes sense. I've moved that down, as I think it flows better overall. |
@bors: r+ rollup |
📌 Commit 6c0314a has been approved by |
Fixes #19733