compute_debuginfo_type_name in rustc_codegen_ssa::debuginfo::type_names - Rust
Description: Compute the name of the type as it should be stored in debuginfo. Does not do any caching, i.e., calling the function twice with the same type will also do the work twice. The `qualified` parameter only affects the first level of the type name, further levels (i.e., type parameters) are always fully qualified.

Skip to main content

## compute_debuginfo_type_name

# Function compute_debuginfo_type_name

Source

    pub fn compute_debuginfo_type_name<'tcx>(
        tcx: TyCtxt<'tcx>,
        t: Ty<'tcx>,
        qualified: bool,
    ) -> String

Expand description

Compute the name of the type as it should be stored in debuginfo. Does not do any caching, i.e., calling the function twice with the same type will also do the work twice. The `qualified` parameter only affects the first level of the type name, further levels (i.e., type parameters) are always fully qualified.