rustc_symbol_mangling

Function compute_symbol_name

Source
pub(crate) fn compute_symbol_name<'tcx>(
    tcx: TyCtxt<'tcx>,
    instance: Instance<'tcx>,
    compute_instantiating_crate: impl FnOnce() -> CrateNum,
) -> String
Expand description

Computes the symbol name for the given instance. This function will call compute_instantiating_crate if it needs to factor the instantiating crate into the symbol name.