- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
          impl PartialEq<{str,String}> for {Path,PathBuf} (and reversed)
          #105877
        
          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
| (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... | 
| This needs a crater run because it has the potential to cause type inference failures. Could you please rebase so that I can start the run? | 
| @rustbot author | 
| @Kixunil any updates on this? thanks | 
| Closing this as inactive. Feel free to reöpen this pr or create a new pr if you get the time to work on this. Thanks | 
… r=<try>
`impl PartialEq<{str,String}> for {Path,PathBuf}`
This is a revival of rust-lang#105877
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
    …h, r=Amanieu
`impl PartialEq<{str,String}> for {Path,PathBuf}`
This is a revival of rust-lang#105877
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
    …h, r=Amanieu
`impl PartialEq<{str,String}> for {Path,PathBuf}`
This is a revival of rust-lang#105877
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
    …h, r=Amanieu
`impl PartialEq<{str,String}> for {Path,PathBuf}`
This is a revival of rust-lang#105877
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
    …h, r=Amanieu
`impl PartialEq<{str,String}> for {Path,PathBuf}`
This is a revival of rust-lang#105877
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
    …h, r=Amanieu
`impl PartialEq<{str,String}> for {Path,PathBuf}`
This is a revival of rust-lang#105877
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
    …h, r=Amanieu
`impl PartialEq<{str,String}> for {Path,PathBuf}`
This is a revival of rust-lang#105877
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
    …h, r=Amanieu
`impl PartialEq<{str,String}> for {Path,PathBuf}`
This is a revival of rust-lang#105877
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
    …h, r=Amanieu
`impl PartialEq<{str,String}> for {Path,PathBuf}`
This is a revival of rust-lang#105877
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
    Rollup merge of #140956 - Kixunil:impl-partialeq-str-for-path, r=Amanieu `impl PartialEq<{str,String}> for {Path,PathBuf}` This is a revival of #105877 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
…h, r=Amanieu
`impl PartialEq<{str,String}> for {Path,PathBuf}`
This is a revival of rust-lang#105877
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
    
Comparison of paths and strings is expected to be possible and needed e.g. in tests. This change adds the impls os
PartialEqbetween 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