compute_symbol_name in rustc_symbol_mangling - Rust
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.

Skip to main content

## compute_symbol_name

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