intern_const_alloc_recursive in rustc_const_eval::interpret::intern - Rust
Description: Intern `ret` and everything it references.

Skip to main content

## intern_const_alloc_recursive

# Function intern_const_alloc_recursive

Source

    pub fn intern_const_alloc_recursive<'tcx, M: CompileTimeMachine<'tcx>>(
        ecx: &mut InterpCx<'tcx, M>,
        intern_kind: InternKind,
        ret: &MPlaceTy<'tcx>,
    ) -> Result<(), InternError>

Expand description

Intern `ret` and everything it references.

This cannot raise an interpreter error. Doing so is left to validation, which tracks where in the value we are and thus can show much better error messages.

For `InternKind::Static` the root allocation will not be interned, but must be handled by the caller.