rustc_const_eval::util::caller_location

Function alloc_caller_location

Source
fn alloc_caller_location<'tcx>(
    ecx: &mut CompileTimeInterpCx<'tcx>,
    filename: Symbol,
    line: u32,
    col: u32,
) -> MPlaceTy<'tcx>
Expand description

Allocate a const core::panic::Location with the provided filename and line/column numbers.