1
Fork 0

Remove or justify use of #[rustc_box]

This commit is contained in:
Ben Kimock 2023-02-25 20:05:27 -05:00
parent 34e6673a04
commit 5448123a11
3 changed files with 7 additions and 9 deletions

View file

@ -3131,10 +3131,7 @@ impl<T, const N: usize> From<[T; N]> for Vec<T> {
/// ```
#[cfg(not(test))]
fn from(s: [T; N]) -> Vec<T> {
<[T]>::into_vec(
#[rustc_box]
Box::new(s),
)
<[T]>::into_vec(Box::new(s))
}
#[cfg(test)]