-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Into implementations should be changed to From #37561
Comments
Given that all |
Seems reasonable to me! I believe |
|
@clarcharr : Did you mean to include a distinct third case? The first and third are both |
@retep998 I think you're reading those backwards. |
@cuviper Oh right, |
…alexcrichton Change `Into<Vec<u8>> for String` and `Into<OsString> for PathBuf` to From Fixes rust-lang#37561. First contribution, happy with any and all feedback!
…alexcrichton Change `Into<Vec<u8>> for String` and `Into<OsString> for PathBuf` to From Fixes rust-lang#37561. First contribution, happy with any and all feedback!
…alexcrichton Change `Into<Vec<u8>> for String` and `Into<OsString> for PathBuf` to From Fixes rust-lang#37561. First contribution, happy with any and all feedback!
Currently, libstd has:
And this seems inconsistent with the other collection implementations which all use
From
instead. It makes sense that these would be changed toFrom
to allow use offrom
, and it doesn't seem like it'd be a breaking change at all.The text was updated successfully, but these errors were encountered: