]> git.lizzy.rs Git - rust.git/commit - compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs
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)
commit0ed254980274c3294c775e6c70ec28a76c902665
tree3c36b2481efbd89b0098d49218481be6fd06f5c0
parentfc9e2c1081354753346ab63ceebb3f44c7e384ae
parent38917ee9e91452aca1f433e47931ee35bb0283f4
Rollup merge of #106889 - scottmcm:windows-mut, r=cuviper

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>.)
library/core/src/slice/mod.rs