Skip to main content

apply_subst

Function apply_subst 

Source
pub fn apply_subst(
    ir: &mut Ir,
    id: InstId,
    subst: &FxHashMap<NameId, InstId>,
) -> InstId
Expand description

Applies a substitution (type variable -> type) to a type expression. Returns a new InstId with all type variables replaced.