File tree 1 file changed +7
-1
lines changed 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 23
23
</div >
24
24
25
25
* Data races.
26
- * Accessing (loading from or storing to) a place that is [ dangling] or unaligned.
26
+ * Accessing (loading from or storing to) a place that is [ dangling] or [ unaligned] .
27
27
* Performing a place projection that violates the requirements of [ in-bounds
28
28
pointer arithmetic] [ offset ] . A place projection is a [ field
29
29
expression] [ project-field ] , a [ tuple index expression] [ project-tuple ] , or an
@@ -100,6 +100,12 @@ reading uninitialized memory is permitted are inside `union`s and in "padding"
100
100
101
101
The span of bytes a pointer or reference "points to" is determined by the pointer value and the size of the pointee type (using ` size_of_val ` ).
102
102
103
+ ### Unaligned places
104
+ [ unaligned ] : #unaligned-places
105
+
106
+ The alignment requirement of a place is computed based on the entire place expression since the last ` * ` (if any).
107
+ If the place was computed via ` (*ptr).field.field ` , then the final place is considered aligned only if ` ptr ` is aligned * according to its type* .
108
+
103
109
### Dangling pointers
104
110
[ dangling ] : #dangling-pointers
105
111
You can’t perform that action at this time.
0 commit comments