-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Implement From and PartialEq for Path, PathBuf and Cow<Path> combinations #29532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
cc @aturon Not sure if these are unimplemented intentionally? (couldn't find any previous issues in the tracker) |
☔ The latest upstream changes (presumably #29514) made this pull request unmergeable. Please resolve the merge conflicts. |
#[stable(feature = "partialeq_path", since = "1.6.0")] | ||
impl<'a, 'b> PartialEq<$rhs> for $lhs { | ||
#[inline] | ||
fn eq(&self, other: &$rhs) -> bool { self.components().eq(other.components()) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this delegate to the <Path as PartialEq>::eq
implementation instead of re-encoding the same one here? It's also probably fine to omit ne
for now as it's not specialized in the main impl either.
Nah these weren't intentionally left out or anything, they should be good to go! |
@alexcrichton Updated! |
No description provided.