You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new copy_descendants function does much of the hard work copying+substituting nodes in the monomorphization pass. We should simplify the latter to just copy-descendants and then scan for Calls that need further monomorphization.
The text was updated successfully, but these errors were encountered:
Note, it might be worth refactoring substitution (the Substitution class and (Type/TypeArg)::subst) to act mutably upon an instance, rather than taking a reference and returning a new instance, first.
That is, add a new fn subst_mut(&mut self, &Substitution) alongside the existing fn subst(&self, s: &Substitution) -> Self EDIT: no need, copy_descendants takes an Option<Substitution>
The new
copy_descendants
function does much of the hard work copying+substituting nodes in the monomorphization pass. We should simplify the latter to just copy-descendants and then scan for Calls that need further monomorphization.The text was updated successfully, but these errors were encountered: