mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-20 10:39:48 +00:00
Wrap toEncoder derivers in Encode.custom for now
This commit is contained in:
parent
6f9b3553e4
commit
a17748ea01
2 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue