-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
impl PartialEq<{str,String}> for {Path,PathBuf}
(and reversed)
#105877
base: master
Are you sure you want to change the base?
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
@rustbot label +T-libs-api -T-libs |
654c4d5
to
b8cd820
Compare
This comment has been minimized.
This comment has been minimized.
b8cd820
to
6e7082d
Compare
This comment has been minimized.
This comment has been minimized.
8a4d869
to
3a37672
Compare
This comment has been minimized.
This comment has been minimized.
Since this is instantly stable, I think it's worth asking why these weren't implemented before. I doubt this omission was unintentional. EDIT: Hm, looking at the proposed implementation I think my initial guess as to why was wrong. Still, my question stands, |
@ChrisDenton the errors in CI are just changed outputs in UI tests which is fine. I didn't have time to update them and will be unable for a few days I think. The linked issues seem like people gave up too soon but I will look later if different errors appear. |
Fair enough. If it's just the case that people keep giving up too early then I don't have any problem. I just prefer to know, if possible, why something seemingly obvious hasn't been done before rather than assuming it's just an oversight. |
☔ The latest upstream changes (presumably #106215) made this pull request unmergeable. Please resolve the merge conflicts. |
3a37672
to
5c9f724
Compare
Comparison of paths and strings is expected to be possible and needed e.g. in tests. This change adds the impls os `PartialEq` between strings and paths, both owned and unsized, in both directions. ACP: rust-lang/libs-team#151
5c9f724
to
4813457
Compare
@rustbot label -S-waiting-on-review +S-waiting-on-ACP |
r? libs-api Needs FCP for a bunch of PartialEq between str and String with Path and PathBuf. ACP was already accepted. |
Though doesn't Deref handle some of them? Hmm... |
Comparison of paths and strings is expected to be possible and needed e.g. in tests. This change adds the impls os
PartialEq
between strings and paths, both owned and unsized, in both directions.Because this is trait impl it's expected to be insta-stable.
ACP: rust-lang/libs-team#151