mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Coupon cutting
This commit is contained in:
parent
a242a90416
commit
c1b1f60630
4 changed files with 10 additions and 17 deletions
|
@ -1843,6 +1843,7 @@ fn make_tag_union_recursive_help<'a, 'b>(
|
|||
// NB: We need to collect the type arguments to shut off rustc's closure type
|
||||
// instantiator. Otherwise we get unfortunate errors like
|
||||
// reached the recursion limit while instantiating `make_tag_union_recursive_help::<...n/src/def.rs:1879:65: 1879:77]>>`
|
||||
#[allow(clippy::needless_collect)]
|
||||
let type_arguments: Vec<&Type> = type_arguments.iter().map(|ta| &ta.typ).collect();
|
||||
let recursive_alias = Loc::at_zero((symbol, type_arguments.into_iter()));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue