mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Fix type error in niche unpacking
This commit is contained in:
parent
ec7ee375d3
commit
1ae3c3b0f8
1 changed files with 1 additions and 1 deletions
|
@ -1711,7 +1711,7 @@ impl<'a> LambdaSet<'a> {
|
|||
lambda_name: LambdaName<'a>,
|
||||
argument_layouts: &'a [Layout<'a>],
|
||||
) -> &'a [Layout<'a>] {
|
||||
let Niche::Captures(CapturesNiche(captures)) = lambda_name.niche;
|
||||
let Niche(NichePriv::Captures(captures)) = lambda_name.niche;
|
||||
// TODO(https://github.com/roc-lang/roc/issues/4831): we should turn on this debug-assert;
|
||||
// however, currently it causes false-positives, because host-exposed functions that are
|
||||
// function pointers to platform-exposed functions are compiled as if they are proper
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue