Attach ambient function vars to lambda sets

This commit is contained in:
Ayaz Hafiz 2022-07-05 09:23:59 -04:00
parent 7365da6f69
commit 5d74a376af
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
14 changed files with 233 additions and 47 deletions

View file

@ -620,6 +620,7 @@ fn deep_copy_type_vars<'a>(
solved,
recursion_var,
unspecialized,
ambient_function,
}) => {
let new_rec_var = recursion_var.map(|var| descend_var!(var));
for variables_slice_index in solved.variables() {
@ -630,6 +631,7 @@ fn deep_copy_type_vars<'a>(
let Uls(var, _, _) = subs[uls_index];
descend_var!(var);
}
let new_ambient_function = descend_var!(ambient_function);
perform_clone!({
let new_variable_slices =
@ -657,6 +659,7 @@ fn deep_copy_type_vars<'a>(
solved: new_solved,
recursion_var: new_rec_var,
unspecialized: new_unspecialized,
ambient_function: new_ambient_function,
})
})
}