Skip to main content

do_alloc

Function do_alloc 

Source
fn do_alloc<'tcx, T>(
    tcx: TyCtxt<'tcx>,
    typed_arena: &'tcx TypedArena<T>,
    value: T,
) -> &'tcx T
Expand description

Allocates a value in either its dedicated arena, or in the common dropless arena, depending on whether it needs to be dropped.