Commit Graph

580 Commits

Author SHA1 Message Date
Richard Feldman
42a03303ca Add a quicksort test to gen_builtins 2020-04-29 07:05:26 -04:00
Folkert
c11ac52a4b fix num/int bug
we called the function with the wrong type variable. now there are two functions, handling both cases
2020-04-29 12:28:13 +02:00
Richard Feldman
dc49656c34 Add some List.get tests 2020-04-28 19:46:42 -04:00
Richard Feldman
353377c29e Re-enable List.get 2020-04-28 19:46:33 -04:00
Richard Feldman
c39b43a265 Code gen numeric comparisons 2020-04-28 18:33:51 -04:00
Richard Feldman
952e5fa012 clippity clip clippy 2020-04-27 20:35:19 -04:00
Richard Feldman
dfb1c2d8a3 Always store collections as (usize, usize) 2020-04-27 20:05:35 -04:00
Richard Feldman
32d6615108 Attempt to store i8 arrays for collection wrappers
This ultimately didn't work because the bitcasting we wanted wasn't allowed.
2020-04-27 20:04:38 -04:00
Richard Feldman
46bf6f4bee Reproduce List.first failing when given [] 2020-04-27 20:03:55 -04:00
Chad Stearns
10a99a6fc7 Merging in remote 2020-04-26 18:24:31 -04:00
Chad Stearns
0cfed05008 Implemented div unsafe 2020-04-26 18:11:46 -04:00
Chadtech
73da3c3f67
Merge branch 'trunk' into int-div 2020-04-26 14:39:03 -04:00
Chad Stearns
aa72619952 Implemenet code gen for int div 2020-04-26 14:38:09 -04:00
Richard Feldman
1bee16decd Temporarily disable List.get in favor of getUnsafe 2020-04-26 09:37:46 -04:00
Richard Feldman
52a3e0afb5 Don't fail gen tests for unused warnings 2020-04-26 09:33:12 -04:00
Richard Feldman
0c58eeea97 Use List.get instead of List.getUnsafe in tests 2020-04-26 09:33:12 -04:00
Richard Feldman
ac6e98361e Drop obsolete List.get hardcoded type 2020-04-26 09:33:08 -04:00
Richard Feldman
b7862f1dc1 Drop obsolete test 2020-04-26 09:10:40 -04:00
Richard Feldman
d4b1c7e68a Eagerly report more problems 2020-04-26 09:04:27 -04:00
Richard Feldman
a2e6c4ba12 Restore some things 2020-04-26 08:59:52 -04:00
Richard Feldman
511c7b7a21 Revise some builtins tests 2020-04-26 08:55:54 -04:00
Richard Feldman
9cc9789738 Merge remote-tracking branch 'origin/trunk' into list-get 2020-04-26 08:46:24 -04:00
Richard Feldman
310595c108 Revert "Only add builtins if they're referenced"
This reverts commit 8e9b02560e9b172def0e915631e1d116c64859f2.
2020-04-26 08:45:47 -04:00
Richard Feldman
d2a9d24626 Only add builtins if they're referenced 2020-04-26 08:45:47 -04:00
Richard Feldman
afbe871e6d wip 2020-04-26 08:45:41 -04:00
Folkert
cd4c28ca0c fix failing tests 2020-04-25 21:12:49 +02:00
Richard Feldman
d0c9c433a6 Have List.first return Err ListWasEmpty 2020-04-25 07:57:41 -04:00
Richard Feldman
75d46053ec Drop unused unique::result_type function 2020-04-25 07:53:30 -04:00
Richard Feldman
24ff91b45a Add a List.first test 2020-04-25 07:52:43 -04:00
Richard Feldman
e78b126207 Give List.first the right name 2020-04-25 07:51:56 -04:00
Richard Feldman
a399614824 Use helpers in can builtins 2020-04-25 07:51:45 -04:00
Richard Feldman
a0512a5f97 Add some List.len and List.isEmpty tests 2020-04-25 07:05:19 -04:00
Richard Feldman
d6a5cc14b6 Fix a comment 2020-04-25 07:05:19 -04:00
Richard Feldman
bac940e116 Fix hardcoded List.isEmpty type 2020-04-25 07:05:18 -04:00
Richard Feldman
d0da4bf926 Remove obsolete hardcoded List.get types 2020-04-25 07:03:33 -04:00
Richard Feldman
034f1c916a Load canonical builtins in gen tests 2020-04-25 07:01:30 -04:00
Richard Feldman
b77b3bda14 Add some List.len and List.isEmpty tests 2020-04-25 07:01:02 -04:00
Richard Feldman
d6d453d120 Add a TODO comment 2020-04-25 07:00:44 -04:00
Richard Feldman
5a22348f35 Fix a comment 2020-04-25 07:00:34 -04:00
Richard Feldman
9dd9b7951d Fix hardcoded List.isEmpty type 2020-04-25 07:00:24 -04:00
Richard Feldman
243bbf4790 Revert changes to mono/ from List.get attempts 2020-04-25 06:30:01 -04:00
Richard Feldman
bff89e7e2e Remove DEFAULT_CALLING_CONVENTION 2020-04-25 06:30:01 -04:00
Richard Feldman
b43e582c7a Add intrinsics for sqrt and round 2020-04-25 06:30:01 -04:00
Folkert
0191910715 fix clippy's newly-learned warnings 2020-04-25 06:30:01 -04:00
Folkert
0a1cf805f9 handle Unboxed 2020-04-25 06:30:01 -04:00
Folkert
3e36bea700 improve formatting of records in pattern exhaustiveness errors 2020-04-25 06:30:01 -04:00
Folkert
8284575a47 fix formatting of ctor patterns in errors 2020-04-25 06:30:01 -04:00
Folkert
dc320e9fd9 fix ordering bug in pattern exhaustiveness 2020-04-25 06:30:01 -04:00
Folkert
f8b540b6f4 use tag id instead of name in exhaustiveness checking 2020-04-25 06:30:01 -04:00
Richard Feldman
07001131b2 Add can::builtins 2020-04-25 06:30:01 -04:00