Revert to using mem::transmute in Box::into_unique
Seems to cause this error: "Cannot handle boxed::Box<[u8]> represented as TyLayout".
This commit is contained in:
parent
8f167b34b7
commit
904133e1e2
@ -326,9 +326,7 @@ impl<T: ?Sized> Box<T> {
|
||||
issue = "27730")]
|
||||
#[inline]
|
||||
pub fn into_unique(b: Box<T>) -> Unique<T> {
|
||||
let u = b.0;
|
||||
mem::forget(b);
|
||||
u
|
||||
unsafe { mem::transmute(b) }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user