Commit b4c590b
authored
Rollup merge of rust-lang#74450 - aticu:master, r=jonas-schievink
Fix `Safety` docs for `from_raw_parts_mut`
This aligns the wording more with the documentation of e.g. `drop_in_place`, `replace`, `swap` and `swap_nonoverlapping` from `core::ptr`.
Also if the pointer were really only valid for writes, it would be trivial to introduce UB from safe code, after calling `core::slice::from_raw_parts_mut`.1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6095 | 6095 | | |
6096 | 6096 | | |
6097 | 6097 | | |
6098 | | - | |
| 6098 | + | |
6099 | 6099 | | |
6100 | 6100 | | |
6101 | 6101 | | |
| |||
0 commit comments