Commit graph

976 commits

Author SHA1 Message Date
Folkert
ae966c8933 constraint default unique 2020-07-20 13:44:45 +02:00
Folkert
36574e6ff7 constrain the default 2020-07-20 13:28:20 +02:00
Folkert
29c3eebace parse default optional expressions in pattern matches 2020-07-20 00:52:16 +02:00
Richard Feldman
04123c973a Appease clippy 2020-07-18 22:25:29 -04:00
Richard Feldman
3eea2c934e Fix an annotation formatting regression 2020-07-18 22:17:41 -04:00
Richard Feldman
8644433158 Reporting for optional fields 2020-07-18 22:13:20 -04:00
Richard Feldman
588410395e Monomorphize optional fields 2020-07-18 22:13:09 -04:00
Richard Feldman
7330e82f75 Constrain optional fields 2020-07-18 14:51:18 -04:00
Richard Feldman
1bdfe578bd Add some solving tests for optional fields 2020-07-18 14:33:25 -04:00
Richard Feldman
98a8bb8115 Fix unifying optional fields 2020-07-18 14:26:38 -04:00
Richard Feldman
eb3ee8ffa3 Fix a parse test 2020-07-18 13:51:04 -04:00
Richard Feldman
a05ebbf36b Solve optional fields 2020-07-18 13:49:06 -04:00
Richard Feldman
8a2d6004ee Constrain uniquness for optional fields 2020-07-18 13:45:12 -04:00
Richard Feldman
1409421de2 Constrain optional record fields 2020-07-18 13:45:12 -04:00
Richard Feldman
8fc9a450b3 Canonicalize optional record fields 2020-07-18 13:12:13 -04:00
Richard Feldman
ae05f0eb0c Unify optional fields 2020-07-18 12:50:47 -04:00
Richard Feldman
8b53ec15fe Change guard to DestructType 2020-07-18 12:42:04 -04:00
Richard Feldman
85f51ef39d Introduce optional record fields 2020-07-18 12:31:17 -04:00
Richard Feldman
e37d53aff0
Merge branch 'trunk' into usage-analysis-improvements 2020-07-17 20:37:00 -04:00
Richard Feldman
f39b194d45 Update tests for new pattern regions 2020-07-17 19:49:27 -04:00
Richard Feldman
152e06186b Reserved keywords can't be patterns 2020-07-17 19:49:27 -04:00
Richard Feldman
ef010d4dec Fix parsing bug for malformed when-branches 2020-07-17 19:49:27 -04:00
Richard Feldman
6855c85002 Reproduce parsing bug with bad when-branches 2020-07-17 19:33:27 -04:00
Folkert
d27dcceef2 use index-based approach for Apply 2020-07-18 01:23:35 +02:00
Folkert
25329ad672 get rid of Container 2020-07-18 00:57:27 +02:00
Folkert
ce8bcbb5ed introduce Record and Apply Update and Access 2020-07-18 00:52:22 +02:00
Folkert
6e7ec8cd2c fix other test failures 2020-07-18 00:18:55 +02:00
Folkert
706a2f3986 Merge remote-tracking branch 'origin/trunk' into report-record-update 2020-07-17 23:51:37 +02:00
Folkert
0459572940 use different mechanism to special-case builtins in usage analysis
this will be extendible to user-defined functions
2020-07-17 23:50:33 +02:00
Folkert
88ca25e7ee move get_shared function to collections 2020-07-17 23:49:43 +02:00
Richard Feldman
ad3c4207ba Expand on some comments 2020-07-16 21:11:57 -04:00
Richard Feldman
3d9dba251e Fix new Rust 1.45 clippy warning 2020-07-16 19:48:58 -04:00
Richard Feldman
2925706570
Merge branch 'trunk' into fix-quicksort 2020-07-16 19:46:19 -04:00
Richard Feldman
9c6b6f7e25 Silence a few clippy warnings
The map_entry one is important; it seems there's no way to write this
using entry where it's actually correct.
2020-07-16 19:30:30 -04:00
Richard Feldman
153eb4f804 Follow clippy's advice 2020-07-16 19:28:38 -04:00
Richard Feldman
2babe67998 Fix stack overflow in monomorphization 2020-07-16 19:28:25 -04:00
Richard Feldman
fb8ff03670 Clarify a comment 2020-07-15 20:58:50 -04:00
Richard Feldman
fcdb300a03 Improve runtime error message 2020-07-15 20:58:36 -04:00
Richard Feldman
730755a951 Only push pattern_vars when pushing args 2020-07-15 20:58:18 -04:00
Richard Feldman
bd8480284f Report the first runtime error among multiple 2020-07-15 20:57:46 -04:00
Folkert
331a8ed5eb error message for record update and missing module 2020-07-14 23:37:19 +02:00
Folkert
27317110f2 add comment describing solving process 2020-07-14 23:13:37 +02:00
Richard Feldman
764eda0780 Fix anonymous function specialization 2020-07-12 23:53:58 -04:00
Richard Feldman
2318384740 Revert "Drop unnecessary specialization"
This reverts commit ff7429cab4.
2020-07-12 23:44:05 -04:00
Richard Feldman
c6a0970b73 Defer specialization by one level only 2020-07-12 23:43:55 -04:00
Richard Feldman
ff7429cab4 Drop unnecessary specialization 2020-07-12 23:39:55 -04:00
Richard Feldman
0ab655fda4 Fix another test 2020-07-12 23:02:31 -04:00
Richard Feldman
5e687cc71c Fix a test 2020-07-12 22:58:52 -04:00
Richard Feldman
5f86ac1d10 Never use the specialization queue, for now 2020-07-12 22:53:03 -04:00
Richard Feldman
c2bc98ea4b Only use pending specializations for other modules 2020-07-12 22:53:03 -04:00