Wrap toEncoder derivers in Encode.custom for now

This commit is contained in:
Ayaz Hafiz 2022-06-24 15:10:37 -04:00
parent 6f9b3553e4
commit a17748ea01
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 10 additions and 3 deletions

View file

@ -190,7 +190,12 @@ impl DerivedModule {
self.derived_ident_ids = ident_ids;
}
pub fn copy_lambda_set_var_to_subs(&self, var: Variable, target: &mut Subs) -> Variable {
pub fn copy_lambda_set_var_to_subs(
&self,
var: Variable,
target: &mut Subs,
target_rank: Rank,
) -> Variable {
#[cfg(debug_assertions)]
{
debug_assert!(!self.stolen);
@ -208,7 +213,8 @@ impl DerivedModule {
//
// However this is a bad coupling and maybe not a good assumption, we should revisit
// this when possible.
Rank::toplevel(),
// Rank::toplevel(),
target_rank,
);
copied_import.variable