Commit 4f80816
committed
Implement split_at_spare_mut directly
The previous implementation used slice::as_mut_ptr_range to derive the
pointer for the spare capacity slice. This is invalid, because that
pointer is derived from the initialized region, so it does not have
provenance over the uninitialized region.1 parent daf2204 commit 4f80816
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2141 | 2141 | | |
2142 | 2142 | | |
2143 | 2143 | | |
2144 | | - | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
2145 | 2148 | | |
2146 | 2149 | | |
2147 | 2150 | | |
2148 | 2151 | | |
2149 | | - | |
| 2152 | + | |
2150 | 2153 | | |
2151 | 2154 | | |
2152 | 2155 | | |
| |||
0 commit comments