intern_as_new_static in rustc_const_eval::interpret::intern - Rust
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).

Skip to main content

## intern_as_new_static

# Function intern_as_new_static

Source

    fn intern_as_new_static<'tcx>(
        tcx: TyCtxtAt<'tcx>,
        static_id: LocalDefId,
        alloc_id: AllocId,
        alloc: ConstAllocation<'tcx>,
        disambiguator: &mut PerParentDisambiguatorState,
    )

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).