File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ The span of bytes a pointer or reference "points to" is determined by the pointe
78
78
A place is said to be "based on a misaligned pointer" if the last ` * ` projection
79
79
during place computation was performed on a pointer that was not aligned for its
80
80
type. (If there is no ` * ` projection in the place expression, then this is
81
- accessing the field of a local and rustc will guarantee proper alignment. If
81
+ accessing the field of a local or ` static ` and rustc will guarantee proper alignment. If
82
82
there are multiple ` * ` projection, then each of them incurs a load of the
83
83
pointer-to-be-dereferenced itself from memory, and each of these loads is
84
84
subject to the alignment constraint. Note that some ` * ` projections can be
You can’t perform that action at this time.
0 commit comments