]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #106889 - scottmcm:windows-mut, r=cuviper
authorMatthias Krüger <matthias.krueger@famsik.de>
Tue, 17 Jan 2023 19:21:27 +0000 (20:21 +0100)
committerGitHub <noreply@github.com>
Tue, 17 Jan 2023 19:21:27 +0000 (20:21 +0100)
Mention the lack of `windows_mut` in `windows`

This is a common request, going back to at least 2015 (#23783), so mention in the docs that it can't be done and offer a workaround using <https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_slice_of_cells>.

(See also URLO threads like <https://internals.rust-lang.org/t/a-windows-mut-method-on-slice/16941/10?u=scottmcm>.)

1  2 
library/core/src/slice/mod.rs

Simple merge