Bump cfg(bootstrap)s
This commit is contained in:
parent
74cf505e36
commit
db3e2bacb6
61 changed files with 151 additions and 187 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue