Commit graph

6636 commits

Author SHA1 Message Date
Richard Feldman
25facfa9c6
Expose capacity builtins 2022-07-13 12:19:37 -04:00
Ayaz Hafiz
66b8d145a9
Support Num.toStr for dec 2022-07-13 12:13:21 -04:00
Ayaz Hafiz
b7c312d449
Support Num.toStr for f32, f64 2022-07-13 12:13:01 -04:00
Folkert
fe7882b598
implement expect collector 2022-07-13 16:23:39 +02:00
Folkert
6190fc9f67
trying to gather expects 2022-07-13 15:47:25 +02:00
Folkert
9d0e3e42d3
bring expectation info to the running code 2022-07-13 15:32:02 +02:00
Ayaz Hafiz
fe63140047
Clippy 2022-07-13 08:47:40 -04:00
Ayaz Hafiz
76f7843c93
Enforce some simplifications 2022-07-13 08:47:40 -04:00
Ayaz Hafiz
7ff180c1a5
Remove stale comments 2022-07-13 08:47:40 -04:00
Ayaz Hafiz
6413000579
Factor unloaded derived symbols check 2022-07-13 08:47:40 -04:00
Ayaz Hafiz
b782f013bd
Fix derive tests 2022-07-13 08:47:39 -04:00
Ayaz Hafiz
a7b06fd7cf
Remove various dbgs 2022-07-13 08:47:39 -04:00
Ayaz Hafiz
b61ffd3684
Add more test gen for derived impls 2022-07-13 08:47:39 -04:00
Ayaz Hafiz
df9bcb1a0c
Use Derived_synth for synthesizing implementations, and Derived_gen for codegen 2022-07-13 08:47:39 -04:00
Ayaz Hafiz
7c2e806a02
Make sure to clone lambda names in can/copy 2022-07-13 08:47:39 -04:00
Ayaz Hafiz
987ebfa9d3
Move expr copying to can 2022-07-13 08:47:39 -04:00
Ayaz Hafiz
63adb901b4
A couple hacks to get deriving of records working.. but it's working? 2022-07-13 08:47:38 -04:00
Ayaz Hafiz
801803d813
Make sure to union tag outcomes all the way 2022-07-13 08:47:38 -04:00
Ayaz Hafiz
719c774acf
Fix errors 2022-07-13 08:47:38 -04:00
Ayaz Hafiz
dd93b5bd51
Update mono tests 2022-07-13 08:47:38 -04:00
Ayaz Hafiz
8d90f2c13e
Fix some compile errors 2022-07-13 08:47:38 -04:00
Ayaz Hafiz
91e3bfbd01
Fix tests 2022-07-13 08:47:38 -04:00
Ayaz Hafiz
9a01117536
Fix compile errors 2022-07-13 08:47:37 -04:00
Ayaz Hafiz
9760462ec5
Ignore record deriving test for now 2022-07-13 08:47:37 -04:00
Ayaz Hafiz
9826253785
Deriving string encoders works 2022-07-13 08:47:37 -04:00
Ayaz Hafiz
a17748ea01
Wrap toEncoder derivers in Encode.custom for now 2022-07-13 08:47:37 -04:00
Ayaz Hafiz
6f9b3553e4
Add Encode.custom captures test 2022-07-13 08:47:37 -04:00
Ayaz Hafiz
445d922f3b
Compact lambda sets with structural derived ability impls 2022-07-13 08:47:37 -04:00
Ayaz Hafiz
9caa09b2c0
Include type, symbol header in derived goldens 2022-07-13 08:47:36 -04:00
Ayaz Hafiz
e940fed3a8
Store specialization lambda sets of derived ability impls 2022-07-13 08:47:36 -04:00
Ayaz Hafiz
fbc2052e83
Use insta crate for snapshot tests
Wow, this makes snapshot testing so much easier!!
2022-07-13 08:47:36 -04:00
Ayaz Hafiz
766ccc97f7
Add comment 2022-07-13 08:47:36 -04:00
Ayaz Hafiz
d8bee6cd18
Perfom derives from global derives module, not just symbol table 2022-07-13 08:47:36 -04:00
Ayaz Hafiz
61db0b6260
Move derivers to their own crate 2022-07-13 08:47:36 -04:00
Ayaz Hafiz
088b443e05
Refactor lambda set compaction so it's better split up 2022-07-13 08:47:35 -04:00
Ayaz Hafiz
fd9dcd8551
Have derivers rely only on exposed module types 2022-07-13 08:47:35 -04:00
Ayaz Hafiz
f481f6da6c
Don't require subs exporting types to be mutable 2022-07-13 08:47:35 -04:00
Ayaz Hafiz
bee7d15aae
Comment out debugs for now 2022-07-13 08:47:35 -04:00
Ayaz Hafiz
b377155acd
Get rid of ExposedByModule::remove for now 2022-07-13 08:47:35 -04:00
Ayaz Hafiz
16e64263f6
Correctly monomorphize all derived methods 2022-07-13 08:47:34 -04:00
Ayaz Hafiz
d56d880afb
Option<SpecializationId> rather than SpecializationId = Option<..> 2022-07-13 08:47:34 -04:00
Ayaz Hafiz
2fbe715f9f
Support null specialization ids 2022-07-13 08:47:34 -04:00
Ayaz Hafiz
6e1698775f
Make sure to update uls_of_var when importing variables directly to a usage site 2022-07-13 08:47:34 -04:00
Ayaz Hafiz
e8fb186d79
Load derived member impls into derived module for mono 2022-07-13 08:47:34 -04:00
Ayaz Hafiz
a8006d225e
Include derives module in dependencies status 2022-07-13 08:47:34 -04:00
Ayaz Hafiz
da6eda03b2
Make specializations for derives after all other modules are specialized 2022-07-13 08:47:33 -04:00
Folkert
d657a8cadc
add code to trigger an expect failure 2022-07-13 14:43:10 +02:00
Folkert
d33beedcd0
add the zig bits for expects 2022-07-13 14:40:07 +02:00
Folkert
68c51782e6
skeleton for running pretty expects 2022-07-13 14:32:47 +02:00
Folkert
cbd6052dbb
fix dict/set not being in scope 2022-07-13 14:04:38 +02:00