fix error compiling stage2

Co-Authored-By: lzutao <taolzu@gmail.com>
This commit is contained in:
Joshua Nelson 2020-01-31 10:46:08 -05:00
parent 62722735fb
commit daeb8ece8c
1 changed files with 1 additions and 1 deletions

View File

@ -2399,7 +2399,7 @@ impl<T: Clone> From<&mut [T]> for Vec<T> {
#[stable(feature = "vec_from_array", since = "1.42.0")]
impl<T, const N: usize> From<[T; N]> for Vec<T> {
fn from(arr: [T; N]) -> Vec<T> {
fn from(arr: [T; N]) -> Self {
<[T]>::into_vec(box arr)
}
}