Commit 9c07efe
committed
Auto merge of rust-lang#105018 - zertosh:path_buf_deref_mut, r=dtolnay
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 rust-lang#105002 adds
`PathBuf::as_mut_os_string` and `Path::as_mut_os_str`.1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1748 | 1748 | | |
1749 | 1749 | | |
1750 | 1750 | | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
1751 | 1759 | | |
1752 | 1760 | | |
1753 | 1761 | | |
| |||
2000 | 2008 | | |
2001 | 2009 | | |
2002 | 2010 | | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
2003 | 2017 | | |
2004 | 2018 | | |
2005 | 2019 | | |
| |||
0 commit comments