Ambient lambda set unification means we can have nice things again

This commit is contained in:
Ayaz Hafiz 2022-07-06 12:57:37 -04:00
parent 640ca78bc5
commit 89e356b5eb
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 31 additions and 2 deletions

View file

@ -123,7 +123,10 @@ impl Phase for LatePhase<'_> {
let copied = module_types
.storage_subs
.export_variable_to(target_subs, ambient_function);
// TODO: I think this is always okay, but revisit later when we're in a more
// stable position to see if we can get rid of the bookkeeping done as a result
// of this.
.export_variable_to_directly_to_use_site(target_subs, ambient_function);
let our_ambient_function_var = copied.variable;
debug_assert!(matches!(