]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #105018 - zertosh:path_buf_deref_mut, r=dtolnay
authorbors <bors@rust-lang.org>
Fri, 16 Dec 2022 18:06:10 +0000 (18:06 +0000)
committerbors <bors@rust-lang.org>
Fri, 16 Dec 2022 18:06:10 +0000 (18:06 +0000)
Implement DerefMut for PathBuf

Without this, there's no way to get a `&mut Path` from `PathBuf` without
going through `into_boxed_path`. This is relevant now that #105002 adds
`PathBuf::as_mut_os_string` and `Path::as_mut_os_str`.

1  2 
library/std/src/path.rs

Simple merge