Commit graph

350 commits

Author SHA1 Message Date
Richard Feldman
453fc0e27c REVERT THIS! Temporarily break block strings.
Also disable some tests because trimming inputs
revealed some bugs I don't want to fix in this PR!
2020-08-31 23:22:10 -04:00
Richard Feldman
37a254cef3 Interpolate strings by desugaring to Str.concat
We could definitely make this more efficent by
allocating enough space for the final string
and then copying the contents of each of the pieces
into it one by one. We don't do that yet though!
2020-08-31 23:14:45 -04:00
Richard Feldman
5b27e10095 Reproduce empty string parsing bug 2020-08-31 23:13:50 -04:00
Richard Feldman
e9f71d09bb Monomorphize string interpolation 2020-08-31 23:13:50 -04:00
Richard Feldman
f35e43768a Get things compiling 2020-08-31 23:13:50 -04:00
Richard Feldman
70bef827a7 Change borrow signature for concat 2020-08-31 23:13:50 -04:00
Chadtech
2ae63c87d6
Update compiler/mono/src/layout.rs
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
2020-08-31 17:02:02 -04:00
Chad Stearns
6b351d0375 Comply with clippy 2020-08-29 23:14:32 -04:00
Folkert
020b6154f9 fix passing functions by name 2020-08-26 23:34:49 +02:00
Chad Stearns
27ef81df58 Commented back in ir.rs lines 2020-08-24 03:36:20 -04:00
Chad Stearns
6232b31818 Comment out inc_dec in ir.rs 2020-08-22 19:48:08 -04:00
Chad Stearns
7c3e9809ca Put List.map tests under main 2020-08-22 19:47:29 -04:00
Richard Feldman
e02e64af2a Register StrConcat's borrow signature 2020-08-19 23:31:45 -04:00
Folkert
7bc162687d make code block in comment look like not a code block to rust doctests 2020-08-20 00:37:37 +02:00
Folkert
36a2c9d978 add comment 2020-08-20 00:09:16 +02:00
Folkert
bfa11cf6b0 appease the clipman 2020-08-19 23:46:56 +02:00
Folkert
fa5e5ab201 back to a working version 2020-08-19 23:42:45 +02:00
Folkert
b0e4a3fd47 make join points use borrow signature 2020-08-15 00:16:03 +02:00
Folkert
294273283b make shared quicksort work 2020-08-15 00:14:20 +02:00
Folkert
d8c71c23f4 thread in borrow signature inference 2020-08-13 20:56:33 +02:00
Richard Feldman
31811410ee cargo fmt 2020-08-12 23:03:09 -04:00
Richard Feldman
2173bc6f6f
Drop commented-out code 2020-08-12 22:48:36 -04:00
Richard Feldman
84789d3077
Drop commented-out code 2020-08-12 22:48:28 -04:00
Richard Feldman
fe0da7a8d7 Appease clippy 2020-08-12 22:33:10 -04:00
Folkert
c52f866d8a fix tests 2020-08-13 01:40:03 +02:00
Folkert
5ca843822f implement optional fields in let bindings and when 2020-08-13 01:39:59 +02:00
Folkert
3e12f1a309 Merge remote-tracking branch 'origin/tail-call-elimination' into gen-optional-field 2020-08-13 00:21:21 +02:00
Folkert
b05e126d78 add more tests 2020-08-13 00:19:01 +02:00
Folkert
20ddbeb528 implement optional fields in function pattern matches 2020-08-13 00:09:57 +02:00
Folkert
380e34d296 Merge remote-tracking branch 'origin/trunk' into tail-call-elimination 2020-08-12 15:46:50 +02:00
Folkert
8c86836101 add TCE 2020-08-12 14:03:55 +02:00
Folkert
bdd8751107 start work on tail recursion 2020-08-12 12:57:20 +02:00
Folkert
2963c44cc6 change tests after branching improvements 2020-08-12 01:36:38 +02:00
Chad Stearns
29c0bfa65d Use allocate_list in clone_nonempty_list 2020-08-11 19:01:18 -04:00
Folkert
7603225fca generate return earlier, causing more TCE 2020-08-11 22:30:34 +02:00
Folkert
84a8b69437 generate IR that uses uniqueness 2020-08-11 14:47:14 +02:00
Richard Feldman
1e9f8e8764 Update test_mono expectations 2020-08-10 23:14:56 -04:00
Richard Feldman
2eab24015c Diff lines on failed test_mono tests 2020-08-10 23:01:37 -04:00
Richard Feldman
b442b9c27a Don't change env.home in specialize_all 2020-08-10 23:01:17 -04:00
Richard Feldman
49a6bd86b4 Procs now store pending specializations by default 2020-08-10 23:00:54 -04:00
Richard Feldman
497a5af72d Avoid a clone 2020-08-10 22:59:14 -04:00
Richard Feldman
8d0c1ddc68 Drop obsolete mono::expr module 2020-08-10 21:25:47 -04:00
Richard Feldman
f4545e8bf7 Expose module thunks 2020-08-10 21:25:47 -04:00
Richard Feldman
35e132e6d7 Fix quicksort benchmark 2020-08-10 21:25:47 -04:00
Richard Feldman
1c828f7811 Have Procs store pending_specializations by default 2020-08-10 21:25:47 -04:00
Richard Feldman
e054131cdd Refactor out a .clone() 2020-08-10 21:25:47 -04:00
Richard Feldman
3cc36e5198
Drop unused field 2020-08-10 19:27:29 -04:00
Richard Feldman
582ed7eda6
Drop commented-out code 2020-08-10 19:27:20 -04:00
Richard Feldman
1e7b3de2c2
Drop obsolete comment 2020-08-10 19:27:02 -04:00
Folkert
25e96fcade fix stack overflow in inc/dec 2020-08-10 22:31:20 +02:00