File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 26
26
* Dereferencing (using the ` * ` operator on) a dangling or unaligned raw pointer.
27
27
* Breaking the [ pointer aliasing rules] . ` &mut T ` and ` &T ` follow LLVM’s scoped
28
28
[ noalias] model, except if the ` &T ` contains an [ ` UnsafeCell<U> ` ] .
29
- * Mutating non-mutable data (that is, data reached through a shared
30
- reference or data owned by an immutable binding), unless that data is contained
31
- within an [ ` UnsafeCell<U> ` ] .
29
+ * Mutating immutable data. All data inside a ` const ` is immutable. Moreover, all
30
+ data reached through a shared reference or data owned by an immutable binding
31
+ is immutable, unless that data is contained within an [ ` UnsafeCell<U> ` ] .
32
32
* Invoking undefined behavior via compiler intrinsics.
33
33
* Executing code compiled with platform features that the current platform
34
34
does not support (see [ ` target_feature ` ] ).
You can’t perform that action at this time.
0 commit comments