Commit c4ad9b4
Shay Kleiman
Added trait NoMemoryEffect to assume_alignment
Assume_alignment has no trait which specifies how it interacts with
memory, this causes an issue in OwnershipBasedBufferDeallocation,
which require all operations which operate on buffers to have explicit
traits defining how the operation interacts with memory.
To prevent this error, I changed assume_alignment to include the trait
NoMemoryEffect. This is valid because assume_alignment is an assertion
for optimization purposes only; it does not allocate, free, read, or
write memory, nor does it change program semantics or memory state.1 parent acd6294 commit c4ad9b4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
0 commit comments