Commit graph

14474 commits

Author SHA1 Message Date
Folkert
836967b919
some other clippy things in tests 2022-03-06 19:07:38 +01:00
Folkert
a9c8e2dc3e
copy instead of clone Content 2022-03-06 19:07:18 +01:00
hafiz
de9da2d8a5
Merge pull request #2657 from rtfeldman/i/2567
Register accessor closures when they are bound
2022-03-06 12:59:55 -05:00
Folkert
1ff8261a66
make Content Copy 2022-03-06 18:51:23 +01:00
Folkert
29bf4195a1
make FlatType Copy 2022-03-06 18:15:26 +01:00
Folkert
41e56519ef
prevent a subs lookup by reserving a Variable 2022-03-06 18:00:25 +01:00
Derek Gustafson
1c9e0c57bf
Make RocDecs display properly in webrepl. 2022-03-06 11:52:25 -05:00
hafiz
cc5c734c20
Merge pull request #2603 from rtfeldman/exhaustiveness-fixes
Exhaustiveness checking with guard
2022-03-06 11:26:55 -05:00
Richard Feldman
a8eff47f87
Use len_utf8 over hardcoded 1
This will compile to the same thing but makes the reason
for the addition more self-documenting.
2022-03-06 11:26:48 -05:00
Richard Feldman
2a6a197fdf
Merge pull request #2653 from rtfeldman/def-types-tweaks
Def types tweaks
2022-03-06 11:25:37 -05:00
ayazhafiz
cc8c945762 Remove stray dbg 2022-03-06 11:16:03 -05:00
Richard Feldman
49fcd03941
Test trailing newline logic 2022-03-06 11:12:43 -05:00
Richard Feldman
8f6f20b57d
Avoid reallocation when ensuring trailing newline 2022-03-06 11:12:43 -05:00
ayazhafiz
0692caf7ba Consolidate Accessor data 2022-03-06 11:07:31 -05:00
Folkert
47a1e5f816
Merge branch 'type-to-var-tco' into builtins-in-roc 2022-03-06 17:00:57 +01:00
ayazhafiz
3bff99b0a2 Register accessor closures when they are bound
Previously we only registered record accessor closures in anonymous
contexts, where we assume they must already be specialized based on the
surrounding contexts. This is not true in general since one might bind
an accessor to a name.

Closes #2567
2022-03-06 10:53:12 -05:00
Richard Feldman
da5fdf6d2f
Merge pull request #2655 from rtfeldman/issues-2580/format-new-line-end-of-file
Issues 2580/format new line end of file
2022-03-06 10:35:10 -05:00
ayazhafiz
6672a174f2 Mention lack of if clause in missing guard pattern 2022-03-06 09:51:38 -05:00
Derek Gustafson
f55aa0c4b6
Add Dec in repl test. 2022-03-06 09:47:21 -05:00
Folkert
0f5c339b4f
and roc_result_to_var 2022-03-06 15:29:23 +01:00
Folkert
eec92204f1
optimize type_to_union_tags 2022-03-06 15:13:39 +01:00
Folkert
8b526e4f58
clippy 2022-03-06 14:54:19 +01:00
Folkert
592a5ace19
optimize recursive call 2022-03-06 14:14:47 +01:00
Folkert
a37a895016
optimize tag name cache 2022-03-06 14:11:33 +01:00
Folkert
04818292a8
Make type_to_variable manually tail-recursive
by using a work stack and reserving variables. fun stuff
2022-03-06 13:22:55 +01:00
Folkert
7ad55d67e2
Make type_to_variable manually tail-recursive
by using a work stack and reserving variables. fun stuff
2022-03-06 13:15:50 +01:00
hafiz
d7c8c8de42
Merge pull request #2654 from rtfeldman/pool-rank-occurs-improvements
Pool rank occurs improvements
2022-03-06 00:25:11 -05:00
Folkert de Vries
21ca144de9
formatting 2022-03-06 01:04:54 +01:00
Folkert
f708811250
move variable definition before macro that captures it 2022-03-06 00:50:41 +01:00
Folkert
628f14fa7b
fix accidentally remove line 2022-03-06 00:35:45 +01:00
Folkert
4806dc378f
add comment and assert back 2022-03-05 23:49:21 +01:00
Folkert
6906d64ec3
optimize occurs 2022-03-05 23:45:15 +01:00
Folkert
0351b9fce7
improvements to adjust_rank 2022-03-05 23:45:07 +01:00
Folkert
97d9027271
improve pool_to_rank_table 2022-03-05 23:44:57 +01:00
Folkert
69be422d83
optimize occurs 2022-03-05 23:37:41 +01:00
Philippe Vinchon
b32e7e0e2d Update example files 2022-03-05 22:32:34 +00:00
Philippe Vinchon
813845e7d1 Trim end and add empty line for POSIX 2022-03-05 22:31:57 +00:00
Folkert
3372d7184e
improvements to adjust_rank 2022-03-05 23:29:33 +01:00
Derek Gustafson
f2de6baa36
Add functionality to turn RocDecs into strings. 2022-03-05 17:28:12 -05:00
Folkert
fd179c8b4e
improve pool_to_rank_table 2022-03-05 23:07:57 +01:00
Richard Feldman
a412cddec2
Merge pull request #2636 from rtfeldman/www-repl-multiline
repl_www: Improved UI for multiline input
2022-03-05 16:56:58 -05:00
Folkert
6009768991
Merge branch 'def-types-tweaks' into builtins-in-roc 2022-03-05 22:36:59 +01:00
Folkert
9f11245b22
add comment 2022-03-05 22:29:30 +01:00
Folkert
6380a9edf9
remove collection that went unused 2022-03-05 22:29:22 +01:00
Folkert
587c89e003
use empty array for empty DefTypes sequence 2022-03-05 21:51:20 +01:00
Folkert
c7c9a90d65
restructure how def_types are stored in Constraints 2022-03-05 21:47:49 +01:00
Folkert
6392e42166
prevent frequent expectation cloning 2022-03-05 21:32:22 +01:00
Folkert
dc8a077fff
constraint.rs tweaks 2022-03-05 21:32:13 +01:00
Folkert
ce393974bf
prevent frequent expectation cloning 2022-03-05 21:29:17 +01:00
Folkert
602355903d
constraint.rs tweaks 2022-03-05 21:28:59 +01:00