mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Debug missing lambda names
This commit is contained in:
parent
ccd68b70e1
commit
38920b98fa
1 changed files with 6 additions and 3 deletions
|
@ -1650,9 +1650,12 @@ impl<'a> LambdaSet<'a> {
|
||||||
lambda_name: LambdaName<'a>,
|
lambda_name: LambdaName<'a>,
|
||||||
argument_layouts: &'a [Layout<'a>],
|
argument_layouts: &'a [Layout<'a>],
|
||||||
) -> &'a [Layout<'a>] {
|
) -> &'a [Layout<'a>] {
|
||||||
debug_assert!(self
|
debug_assert!(
|
||||||
.set
|
self.set
|
||||||
.contains(&(lambda_name.name, lambda_name.captures_niche.0)));
|
.contains(&(lambda_name.name, lambda_name.captures_niche.0)),
|
||||||
|
"{:?}",
|
||||||
|
(self, lambda_name)
|
||||||
|
);
|
||||||
// If we don't capture, there is nothing to extend.
|
// If we don't capture, there is nothing to extend.
|
||||||
if lambda_name.captures_niche.0.is_empty() {
|
if lambda_name.captures_niche.0.is_empty() {
|
||||||
argument_layouts
|
argument_layouts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue