Expand the set of mutual PartialEq and PartialOrd impls for OsStr[ing] and Path[Buf] by gkoz · Pull Request #31751 · rust-lang/rust (original) (raw)

thaliaarchi added a commit to thaliaarchi/rust that referenced this pull request

Apr 6, 2025

@thaliaarchi

`` [Implement AsRef for Cow<'_, Path>](/thaliaarchi/rust/commit/781b92c3f1bbf88252c6de7fbddc386c0c0c26b4 "Implement AsRef for Cow<'_, Path>

In #31751, impl AsRef<Path> for Cow<'_, OsStr> was added, but the converse was omitted and it wasn't mentioned in discussion. This seems to have been a simple oversight, as it otherwise implemented traits mutually between OsStr and Path.") ``

[781b92c](/thaliaarchi/rust/commit/781b92c3f1bbf88252c6de7fbddc386c0c0c26b4)

In rust-lang#31751, impl AsRef<Path> for Cow<'_, OsStr> was added, but the converse was omitted and it wasn't mentioned in discussion. This seems to have been a simple oversight, as it otherwise implemented traits mutually between OsStr and Path.