Function rustc_const_eval::interpret::intern::intern_as_new_static

source ยท
fn intern_as_new_static<'tcx>(
    tcx: TyCtxtAt<'tcx>,
    static_id: LocalDefId,
    alloc_id: AllocId,
    alloc: ConstAllocation<'tcx>,
)
Expand description

Creates a new DefId and feeds all the right queries to make this DefId appear as if it were a user-written static (though it has no HIR).