Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix assembling mutable slice from const reference
The pointer to `slice::from_raw_parts_mut` must have provenance for accessing the underlying elements mutably. A pointer acquired by slice::as_ptr does not have that, it only allows shared read access. That's mostly a theoretical concern of the pointer tagging model proposed by RustBelt.
- Loading branch information