Fix nasty perf bug in parsing types

This commit is contained in:
Joshua Warner 2024-12-01 10:35:59 -08:00
parent 7cc24cbced
commit 085c5e2fe7
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
5 changed files with 82 additions and 32 deletions

View file

@ -0,0 +1 @@
Expr(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(Type(TInParens(End(@78), @74), @72), @71), @69), @68), @66), @65), @61), @60), @58), @57), @53), @52), @50), @49), @47), @46), @44), @43), @41), @40), @39), @38), @36), @35), @31), @30), @28), @27), @23), @22), @20), @19), @17), @16), @11), @10), @8), @7), @3), @2), @2), @0)

View file

@ -0,0 +1 @@
.:(i,i,(i,(i,ii,(i,(i,(i,i,(i,(i,i,(i,(J(i,(i,(i,(i,(i,i,(i,(i,i,(i,(i,(i,(J[]

View file

@ -222,6 +222,7 @@ mod test_snapshots {
fail/module_params_with_missing_arrow.header,
fail/module_with_unfinished_params.header,
fail/multi_no_end.expr,
fail/nested_tuples_annotation_terrible_perf.expr,
fail/newline_before_operator_with_defs.expr,
fail/opaque_type_def_with_newline.expr,
fail/pattern_binds_keyword.expr,