We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2935d29 commit a7c2cf8Copy full SHA for a7c2cf8
src/liballoc/boxed.rs
@@ -248,7 +248,7 @@ impl<T> Box<T> {
248
#[unstable(feature = "box_into_boxed_slice", issue = "71582")]
249
pub fn into_boxed_slice(boxed: Box<T>) -> Box<[T]> {
250
// *mut T and *mut [T; 1] have the same size and alignment
251
- unsafe { Box::from_raw(Box::into_raw(boxed) as *mut [T; 1] as *mut [T]) }
+ unsafe { Box::from_raw(Box::into_raw(boxed) as *mut [T; 1]) }
252
}
253
254
0 commit comments