3 #![allow(non_camel_case_types)]
4 // pretty-expanded FIXME #23616
5 #![feature(allocator_api)]
7 use std
::alloc
::{handle_alloc_error, AllocInit, AllocRef, Global, Layout}
;
25 fn alloc(_bcx
: &arena
) -> &Bcx
<'_
> {
27 let layout
= Layout
::new
::<Bcx
>();
29 .alloc(layout
, AllocInit
::Uninitialized
)
30 .unwrap_or_else(|_
| handle_alloc_error(layout
));
31 &*(memory
.ptr
.as_ptr() as *const _
)
35 fn h
<'a
>(bcx
: &'a Bcx
<'a
>) -> &'a Bcx
<'a
> {
36 return alloc(bcx
.fcx
.arena
);
40 let bcx
= Bcx { fcx }
;
43 Global
.dealloc(NonNull
::new_unchecked(bcx2
as *const _
as *mut _
), Layout
::new
::<Bcx
>());
49 let fcx
= Fcx { arena: &a, ccx }
;
54 let ccx
= Ccx { x: 0 }
;