]> git.lizzy.rs Git - rust.git/commit
Override ToOwned::clone_into for Path and OsStr
authorScott McMurray <scottmcm@users.noreply.github.com>
Thu, 13 Apr 2017 09:48:46 +0000 (02:48 -0700)
committerScott McMurray <scottmcm@users.noreply.github.com>
Wed, 19 Apr 2017 04:02:18 +0000 (21:02 -0700)
commit295bcdb715871ef3ba0258c75dad885b7315a162
tree55cd65b380897d4c742b5b1073da93fd3a1cf5da
parent9f2abadca2d065bf81772cb84981d0a22d8e98b3
Override ToOwned::clone_into for Path and OsStr

The only non-overridden one remaining is the CStr impl, which cannot
be optimized as doing so would break CString's second invariant.
src/libstd/ffi/os_str.rs
src/libstd/lib.rs
src/libstd/path.rs