1
Fork 0

Bump cfg(bootstrap)s

This commit is contained in:
Mark Rousskov 2023-11-13 07:39:17 -05:00
parent 74cf505e36
commit db3e2bacb6
61 changed files with 151 additions and 187 deletions

View file

@ -548,10 +548,6 @@ impl Builder {
let main = Box::new(main);
// SAFETY: dynamic size and alignment of the Box remain the same. See below for why the
// lifetime change is justified.
#[cfg(bootstrap)]
let main =
unsafe { mem::transmute::<Box<dyn FnOnce() + 'a>, Box<dyn FnOnce() + 'static>>(main) };
#[cfg(not(bootstrap))]
let main = unsafe { Box::from_raw(Box::into_raw(main) as *mut (dyn FnOnce() + 'static)) };
Ok(JoinInner {