Commit Graph

15066 Commits

Author SHA1 Message Date
Richard Feldman
0e7afd15c5
Merge pull request #2984 from rtfeldman/format-allow-blank-line-around-comments
Allow single blank line around comments in lists, records, type annotations
2022-05-01 14:17:12 -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
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
Ayaz
c3209fdded
Merge pull request #2980 from rtfeldman/format-inline-comments-for-defs
Format Inline Comments for Defs
2022-04-30 11:33:45 -04: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 de Vries
0100ec84b2
Merge pull request #2976 from rtfeldman/i/2489
Only assert that rigids are introduced at given rank behind flag
2022-04-30 01:37:48 +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
Ayaz Hafiz
9964f86a3d
Factor bespoke debug variables into debug_flags crate 2022-04-29 17:45:55 -04:00
Ayaz Hafiz
fe28d1554b
Only assert that rigids are introduced at given rank behind flag
Closes #2489
2022-04-29 16:26:10 -04:00
Folkert
76a9d25f55
step 3 2022-04-29 21:21:32 +02:00
Folkert
c725c27c1b
step 2 2022-04-29 20:44:42 +02:00
Folkert
9906623e34
scoped locals step 1 2022-04-29 20:28:32 +02:00
Folkert
b8217bf9de
separate imports from local symbols 2022-04-29 18:42:57 +02:00
Ayaz Hafiz
7d3f02d0e1
Unnecessary clone 2022-04-29 12:18:48 -04:00
Ayaz Hafiz
83c6c3a17d
Remove Lowercase from Alias and Opaque 2022-04-29 11:36:31 -04:00
Ayaz Hafiz
452b882f12
Remove unused alias types 2022-04-29 11:04:15 -04:00
Ayaz Hafiz
c225515a1b
Get rid of variable name on DelayedAlias 2022-04-29 10:55:29 -04:00
Ayaz Hafiz
2e62fba7bc
Delay instantiation of opaque types 2022-04-29 10:44:33 -04:00
Ayaz Hafiz
ca7c9ec5e6
No more lowercase for opaques 2022-04-29 10:41:27 -04:00
Folkert de Vries
5e47e4767e
Merge pull request #2967 from rtfeldman/arm-sjlj
SJLJ roc_panic on AArch64
2022-04-29 16:32:15 +02:00
Ayaz Hafiz
e1fe7d7ed8
Comment 2022-04-29 09:09:28 -04:00
Folkert de Vries
4074088a5e
Merge pull request #2971 from rtfeldman/no-mono-exhaustiveness
No more exhaustiveness checking in mono, nor mono errors
2022-04-29 09:18:50 +02:00
ayazhafiz
c6f313c33a Fix test with type errors 2022-04-28 21:13:10 -04:00
ayazhafiz
dad10af0f9 Make sure to stacksave on x86 2022-04-28 21:07:17 -04:00
Ayaz
1d35cdde8a
Merge pull request #2973 from rtfeldman/scope-touchups
Scope touchups
2022-04-28 20:44:03 -04:00
ayazhafiz
07781dd95f Disable closure wasm test 2022-04-28 20:37:42 -04:00
ayazhafiz
5be9a001e3 Empty records are exhaustive 2022-04-28 20:34:04 -04:00