mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Don't pass empty captures
This commit is contained in:
parent
13c45151a4
commit
fcb907b0c9
3 changed files with 13 additions and 9 deletions
|
@ -368,11 +368,13 @@ pub fn build_erased_function<'a>(
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct ResolvedErasedCaptures<'a> {
|
||||
layouts: &'a [InLayout<'a>],
|
||||
symbols: &'a [Symbol],
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ResolvedErasedLambda<'a> {
|
||||
captures: Option<ResolvedErasedCaptures<'a>>,
|
||||
lambda_name: LambdaName<'a>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue