Commit graph

7453 commits

Author SHA1 Message Date
Joshua Warner
e3f2f8d9a4 keep indent state in fmt Buf 2021-12-04 18:26:32 -08:00
Brendan Hansknecht
a7725a81d5 Fix string argument loading and refcount functions 2021-12-04 14:46:02 -08:00
Brendan Hansknecht
6205816db4 Get refcounting working 2021-12-04 10:43:45 -08:00
Brendan Hansknecht
c11484e968 add Num.Gte 2021-12-04 10:00:22 -08:00
Brendan Hansknecht
5cb682140d ignore empty struct loading 2021-12-04 09:59:56 -08:00
Anton-4
b3420d793f removed dbg, disabled comment_after test 2021-12-04 15:22:45 +01:00
Brian Carroll
1fccd5bede Suppress Clippy error 2021-12-04 10:04:19 +00:00
Anton-4
d6a27d1e53 Merge branch 'trunk' of github.com:rtfeldman/roc into editor-comments 2021-12-04 11:00:03 +01:00
Richard Feldman
e872d00b13
Merge pull request #2128 from rtfeldman/joshuawarner32/check-format-stable
Check that formatting is stable/idempotent
2021-12-03 22:53:30 -05:00
Joshua Warner
4bbe1d308a rename expect_format_helper and add comment 2021-12-03 19:32:44 -08:00
Joshua Warner
5d3d4467c1 Fix indentation & stability in with formatting 2021-12-03 13:33:25 -08:00
Folkert
eaefb56994 make some helper functions non-mut 2021-12-03 21:50:39 +01:00
Folkert
3291cc680e use Cell, remove threading of identids 2021-12-03 21:50:26 +01:00
Folkert
47840a4e65 use env through backend, preventing a double borrow 2021-12-03 20:49:51 +01:00
Folkert
edf113513c add helper methods for layout -> string conversion in dev backend 2021-12-03 20:49:09 +01:00
Anton-4
e50fb25b38 forgot about Aarch64 2021-12-03 20:03:45 +01:00
Anton-4
4427779c7a set zig builtins target for compatibility 2021-12-03 19:57:19 +01:00
Joshua Warner
270cc49867 Also check formatting is stable in tests; ignore a test that's invalid / incorrect 2021-12-02 17:46:50 -08:00
rvcas
bc5b1abcba feat(Str.toNum): support decimal 2021-12-02 15:35:34 -05:00
rvcas
d8a3a961bf fix: remove first arg input: T from parseFloat in zig 2021-12-02 15:15:14 -05:00
rvcas
b58a965e08 test(Str.toNum): add float test case 2021-12-02 15:13:39 -05:00
Folkert
d6ed2147ae basic working test case 2021-12-02 20:30:58 +01:00
rvcas
8a21b42c20 feat: check errorcode in returned record for a value greater than 0 2021-12-02 14:06:29 -05:00
Anton-4
58f3559c98 consistent result type signatures 2021-12-02 17:49:04 +01:00
Brian Carroll
e088eceb29 Generate refcounting procs in gen_dev 2021-12-02 15:41:09 +00:00
Richard Feldman
8d5ea357b5 cargo fmt 2021-12-02 09:40:04 -05:00
Richard Feldman
44bb5d0645
Use Debug over Display to fix parse test 2021-12-02 08:57:44 -05:00
Brian Carroll
d0ef1e5b36 Route IdentIds to refcount proc generator in dev backend 2021-12-02 09:58:34 +00:00
Chelsea Troy
23c0ab0170 Fix tests; evidently there were duplicate tests because the macro makes two of the tests that were also declared manually 2021-12-02 00:43:50 -06:00
Chelsea Troy
e57a539a66 cargo fmt AGAIN 2021-12-01 23:59:58 -06:00
Richard Feldman
4e91ce79de
Merge pull request #2121 from rtfeldman/optimize-alias-to-var
optimize alias to var conversion
2021-12-01 22:08:59 -05:00
Richard Feldman
064dc12145
fix typo in comment 2021-12-01 22:06:03 -05:00
Richard Feldman
23fda0819f
Merge pull request #2112 from rtfeldman/joshuawarner32/fix-defs-indenting
Fix fmt_spaces indenting in the context of 3 or more newlines
2021-12-01 21:58:58 -05:00
Chelsea Troy
b65a69f07e Appeasing the clippy 2021-12-01 18:56:15 -06:00
Chelsea Troy
f680ee3c24 Fix a spelling mistake; how was this ever passing? 2021-12-01 18:41:37 -06:00
Chelsea Troy
2eefe9ff6d cargo fmt 2021-12-01 18:38:51 -06:00
Richard Feldman
ed40a8fc1c
Merge pull request #2114 from rtfeldman/joshuawarner32/fix-det-indentation
Fix indentation within parens
2021-12-01 19:38:07 -05:00
Joshua Warner
6edb376fdd Modify test to make the problem clear 2021-12-01 16:14:27 -08:00
Joshua Warner
c6116ba3ca Fix fmt_spaces indenting in the context of 3 or more newlines 2021-12-01 16:14:27 -08:00
Joshua Warner
8ab7b121eb Use newline in places where it should obviously be used 2021-12-01 16:14:27 -08:00
Brian Carroll
b193483756 Refactor contents of gen_dev's main loops into helper functions 2021-12-01 22:36:43 +00:00
rvcas
d6ab0b6aa4 fix: bitcode functions needed the str namespace not num 2021-12-01 16:40:56 -05:00
rvcas
0d74daf7d9 feat: match on a Union Layout and use index access to get the num layout 2021-12-01 16:25:24 -05:00
rvcas
ba9d01773b fix: result holds a num_type 2021-12-01 16:25:00 -05:00
rvcas
3104406956 feat: add the type def for Str.toNum 2021-12-01 16:12:55 -05:00
Anton-4
e63701c5d1 trying to make Str.toNum work for Ints 2021-12-01 20:37:21 +01:00
Folkert
a23b76d35f more helpers 2021-12-01 20:01:48 +01:00
Anton-4
2e21fd0cb9 Merge branch 'str-to-num' of github.com:rtfeldman/roc into str_to_num 2021-12-01 19:43:01 +01:00
Anton-4
c63c69f1ef prep merge with Folkert's branch 2021-12-01 19:42:22 +01:00
Folkert
82bb341e9c add constraint soa form 2021-12-01 19:26:01 +01:00