Commit graph

8932 commits

Author SHA1 Message Date
Richard Feldman
e6b05d463e
Make PRELUDE_TYPES a constant 2022-05-02 19:29:39 -04:00
Ayaz
5ec815a373
Merge pull request #2985 from rtfeldman/closure-called-in-defining-scope
Closure called in defining scope
2022-05-02 16:41:55 -04:00
Richard Feldman
85e5931ce3
s/bytes/bits where appropriate 2022-05-02 15:16:31 -04:00
Folkert
68ca014cfa
comments + proper naming 2022-05-02 20:45:53 +02:00
Folkert
71cb370089
keep strings on the stack on 32-bit targets 2022-05-02 20:15:28 +02:00
Anton-4
c745c08071
fmt+clippy 2022-05-02 18:33:41 +02:00
Richard Feldman
7e0265adc2
Add an explicit scope around a lock 2022-05-02 10:28:08 -04:00
Richard Feldman
59d1687d0e
Add VecSet::iter_mut 2022-05-02 10:16:43 -04:00
Richard Feldman
ca965c8eac
Fix some autolinks in Num docs 2022-05-02 10:16:43 -04:00
Richard Feldman
f0d52ea70d
Incorporate docs/Bool.roc into roc/Bool.roc 2022-05-02 10:16:42 -04:00
Jared Cone
bea87d4168
Files generated by test 2022-05-02 04:53:44 -07:00
Brian Carroll
c27a152059
Fix confusion between isize and usize in mono code_gen_help 2022-05-02 04:28:33 -07:00
Brian Carroll
07b3c74713
Refactor for faster Rust compile times 2022-05-02 04:28:33 -07:00
Jared Cone
c7459e9888
Added support for unsigned gt/lt to wasm.
Breaks some other tests, pushing now for sharing
2022-05-02 04:28:33 -07:00
Jared Cone
47f5b89b26
Fixed formatting 2022-05-02 04:28:32 -07:00
Jared Cone
3263633575
Changed list_take_last to compare list len to arg instead of different to zero.
`List.takeLast [1,2] 5` was doing unsigned `2 - 5` which wraps to a large number unsigned. This was fine before `NumGt` was fixed to use unsigned compare for unsigned numbers.
2022-05-02 04:28:32 -07:00
Jared Cone
c0780aad92
Implemented unsigned int comparisons. 2022-05-02 04:28:28 -07:00
Richard Feldman
4e220288a5
Delete builtin docs for Num 2022-05-01 20:58:01 -04:00
Richard Feldman
7fc0330a71
Move builtin docs from docs/ to roc/ 2022-05-01 20:55:33 -04:00
Ayaz
2ab0bc1226
Merge pull request #2982 from rtfeldman/more-debug-flags
Add more debug flags
2022-05-01 14:30:33 -04:00
Sean Hagstrom
4707528caa feature(formatter): allow single blank line around comments in lists, records, type annotations 2022-05-01 18:28:49 +01:00
Ayaz
84b3ef5fd7
Merge pull request #2978 from rtfeldman/scope-bitmask
Scope bitmask
2022-05-01 12:26:14 -04:00
ayazhafiz
37ba70472f Add more debug flags 2022-05-01 12:25:03 -04:00
Folkert
5c9f8f5037
fix a bug where a closure is called immediately 2022-05-01 14:42:16 +02:00
Folkert
a35619ec80
add Symbol::contains helper for debugging 2022-05-01 14:29:52 +02:00
Folkert
10c2c5e8fd
make construct_closure_data more polymorphic 2022-05-01 14:29:02 +02:00
Ayaz
3197cd97ce
Merge pull request #2977 from rtfeldman/debug_flags
Factor bespoke debug variables into debug_flags crate
2022-04-30 18:16:06 -04:00
Ayaz
56935407b2
Merge pull request #2974 from rtfeldman/opt-opaque-metadata
Delay opaque instantiation, remove unnecessary Lowercase in Type
2022-04-30 18:10:45 -04:00
Folkert
84f0839de9
remove zig import we don't need in 0.9.1 2022-04-30 23:43:38 +02:00
Folkert
b7b86c0cde
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-04-30 23:34:48 +02:00
Folkert
7361a8aed2
fix merge conflict 2022-04-30 23:34:42 +02:00
Folkert
be6006bbab
refactor 2022-04-30 21:22:47 +02:00
Folkert
d3f00c8c6d
use vec![] 2022-04-30 21:21:14 +02:00
Folkert
a5ec269a4d
clippy 2022-04-30 21:06:34 +02:00
Folkert
66d29e8611
fix typo 2022-04-30 21:00:48 +02:00
Folkert
76754e4d2a
use &str instead of Ident in some key places 2022-04-30 20:43:12 +02:00
Folkert
15f860e6d7
search imports first; they are likely to be small, andl likely to contain used types 2022-04-30 19:58:09 +02:00
Folkert
c3ef37d1bd
refactor 2022-04-30 19:11:51 +02:00
Folkert
ec99d61953
skip generated symbols when looking for an ident 2022-04-30 17:11:46 +02:00
Folkert
45197779ae
re-use idents more aggressively 2022-04-30 15:47:15 +02:00
Sean Hagstrom
e6621e5167 remove outdated test for inline comment formatting
I tested if the formatter was still inconsistent by locally changing the helloWorld example to have:
```
main =
    greeting = "Hello, World!\n" # This variable is for greeting

    greeting
```
And running the formatter multiple times with `cargo run -- formatter`.
At the moment the results are consistent and the inline comments remains inlined.
2022-04-30 14:37:53 +01:00
Sean Hagstrom
e36aad6310 fix(formatter): format and allow inline comments for defs 2022-04-30 14:34:33 +01:00
Folkert
d23a14eae6
fix can tests 2022-04-30 14:04:18 +02:00
Folkert
c1d9c63e37
flip the order of loops to make lookups much faster 2022-04-30 12:27:50 +02:00
Folkert
a78aff0f2f
clippy 2022-04-30 01:54:16 +02:00
Folkert
4ad5e532c1
even more cleanup 2022-04-30 01:35:15 +02:00
Folkert
6fb014baba
more cleanup 2022-04-30 01:25:27 +02:00
Folkert
953369e0d8
cleanup 2022-04-30 00:57:21 +02:00
Folkert
8fe3e24c8b
step 4: new scope with passing reporting tests 2022-04-30 00:51:32 +02:00
Ayaz Hafiz
3411a4b266
Simplify 2022-04-29 17:49:40 -04:00