Uh oh!
There was an error while loading. Please reload this page.
Convert Intos to Froms. - #42129
Conversation
rust-highfive
commented
May 20, 2017
r? @BurntSushi (rust_highfive has picked a reviewer for you, use r? to override) |
Mark-Simulacrum
commented
May 20, 2017
Travis failed: |
BurntSushi
commented
May 21, 2017
In principle this seems fine to me, if you can get it to work. However, are there any backward compatibility/inference failure hazards? Should this get a crater run? |
clarfonthey
commented
May 21, 2017
@BurntSushi doesn't require crater run because |
BurntSushi
commented
May 21, 2017
Right. I understand it shouldn't. But I've been fooled by things like this in the past. :-) |
alexcrichton
commented
May 25, 2017
Ah yeah unfortunately these impls are not possible due to coherence. In that case I'm going to close this. |
ollie27
commented
May 25, 2017
I believe it's only |
alexcrichton
commented
May 25, 2017
Ah ok! Want to send a PR with those implementations? |
ollie27
commented
May 25, 2017
Sure: #42227 |
clarfonthey
commented
May 27, 2017
Thanks @ollie27 for beating me to it |
Convert Intos to Froms. This is a resubmission of #42129 without `impl<T> From<Vec<T>> for Box<[T]>`.
Convert Intos to Froms. This is a resubmission of #42129 without `impl<T> From<Vec<T>> for Box<[T]>`.
Convert `Into<Box<[T]>> for Vec<T>` into `From<Vec<T>> for Box<[T]>` As the `collections` crate has been merged into `alloc` in rust-lang#42648 this impl is now possible. This is the final part of rust-lang#42129 missing from rust-lang#42227.
Convert Intos to Froms. This is a resubmission of rust-lang#42129 without `impl<T> From<Vec<T>> for Box<[T]>`.
Convert Intos to Froms. This is a resubmission of rust-lang#42129 without `impl<T> From<Vec<T>> for Box<[T]>`.
This didn't work before but supposedly this should work now. It's better to have
Fromimpls overInto.