You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/behavior-considered-undefined.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ r[undefined.place-projection]
43
43
[array/slice index expression][project-slice].
44
44
45
45
r[undefined.alias]
46
-
* Breaking the pointer aliasing rules. The exact aliasing rules are not determined yet, but here is a rough sketch of what the requirements look like:
46
+
* Breaking the pointer aliasing rules. The exact aliasing rules are not determined yet, but here is an outline of the general principles:
47
47
`&T` must point to memory that is not mutated while they are live (except for data inside an [`UnsafeCell<U>`]),
48
48
and `&mut T` must point to memory that is not read or written by any pointer not derived from the reference and that no other reference points to while they are live.
49
49
`Box<T>` is treated similar to `&'static mut T` for the purpose of these rules.
0 commit comments