Skip to content

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

Merged
merged 3 commits into from
Nov 3, 2015

Conversation

Ryman
Copy link
Contributor

@Ryman Ryman commented Nov 3, 2015

No description provided.

@rust-highfive
Copy link
Contributor

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@Ryman
Copy link
Contributor Author

Ryman commented Nov 3, 2015

cc @aturon Not sure if these are unimplemented intentionally? (couldn't find any previous issues in the tracker)

@bors
Copy link
Collaborator

bors commented Nov 3, 2015

☔ 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()) }
Copy link
Member

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.

@alexcrichton
Copy link
Member

Nah these weren't intentionally left out or anything, they should be good to go!

@Ryman
Copy link
Contributor Author

Ryman commented Nov 3, 2015

@alexcrichton Updated!

@alexcrichton
Copy link
Member

@bors: r+ f576215

@bors
Copy link
Collaborator

bors commented Nov 3, 2015

⌛ Testing commit f576215 with merge 2a7bd08...

bors added a commit that referenced this pull request Nov 3, 2015
@bors bors merged commit f576215 into rust-lang:master Nov 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants