Andreas Rumpf
843ae0073b
fixes #11523
...
(cherry picked from commit 135fdde6a9 )
2019-07-02 13:54:41 +02:00
Andreas Rumpf
d206e881e9
fixes #11525
...
(cherry picked from commit 19b142401c )
2019-07-02 13:52:20 +02:00
Miran
712d9ce1b9
[bugfix] fix #11532 , nimpretty should ignore source code filters ( #11603 )
...
(cherry picked from commit f65eaa51f1 )
2019-06-27 20:59:46 +02:00
Andreas Rumpf
ba6eb0151c
fixes #11098
...
(cherry picked from commit e083a1533b )
2019-06-27 20:59:46 +02:00
Araq
e08cf5a947
fixes #11600
...
(cherry picked from commit b6fb47df77 )
2019-06-27 20:59:46 +02:00
Miran
38aa7f6d20
[bugfix] fix #11469 , new rules for a newline in nimpretty ( #11512 )
...
* [bugfix] fix #11469 , new rules for a newline in nimpretty
* concatenate two lines if they have the same indentation level
(cherry picked from commit f288e1b11a )
2019-06-27 20:59:46 +02:00
Araq
763357089e
fixes #11577
...
(cherry picked from commit 0a81b038fd )
2019-06-27 20:59:46 +02:00
alaviss
6576c1ab5c
[refactor] compiler/[msgs, reorder, semstmts]: use toMsgFilename where appropriate ( #11595 )
...
* compiler/msgs: toMsgFilename now operates on FileIndex
* compiler/reorder: use toMsgFilename for compiler messages
* compiler/semstmts: respect listFullPaths for recursive deps error
(cherry picked from commit 993b3909a8 )
2019-06-27 20:59:45 +02:00
alaviss
8a16fb972b
compiler/[msgs, options]: confine --listFullPaths to compiler messages ( #11583 )
...
* compiler/[msgs, options]: make toFilename independent of listFullPaths
toFilename is used mainly in codegen, as such it should not follow
--listFullPaths
* compiler/msgs: use toMsgFilename for toFileLineCol
This proc is mainly used for compiler messages, so it should follow
--listFullPaths
* compiler/msgs: remove toFileLine
unused proc
* compiler/msgs: cleanup toMsgFilename
Also improved path choosing logic, /home should now be preferred over
../home on *nix
(cherry picked from commit 2f1a1b7106 )
2019-06-27 20:59:45 +02:00
Andreas Rumpf
48770b04bd
fixes #11563 ( #11594 )
...
(cherry picked from commit 0f868b587b )
2019-06-27 20:59:45 +02:00
cooldome
7e702d95c1
increase dfa instruction limit ( #11579 )
...
(cherry picked from commit 0d50b0c8a7 )
2019-06-27 20:59:45 +02:00
Arne Döring
a5a62b562f
[refactoring] remove zeroExtend and friends from the compiler builtins. ( #11531 )
...
* remove zeroExtend and friends from the compiler builtins.
* fix jssys
(cherry picked from commit e90d91f0e4 )
2019-06-27 20:59:45 +02:00
Andreas Rumpf
433dfaf288
[bugfix] fixes #11524
...
(cherry picked from commit 79c721d418 )
2019-06-27 18:14:36 +02:00
Andreas Rumpf
ef018d7a63
[bugfix] fixes #11556
...
(cherry picked from commit 35df59b3ce )
2019-06-27 18:14:35 +02:00
Kaushal Modi
810166ca95
[other] Improve the "tabs are not allowed" error message ( #11554 )
...
(cherry picked from commit a4c613c110 )
2019-06-27 18:14:35 +02:00
Miran
d5ea497cff
[bugfix] correct 'source' for documentation ( #11540 )
...
(cherry picked from commit d6b0e46ee4 )
2019-06-27 18:13:55 +02:00
Andreas Rumpf
edc151fa64
[other] new experimental pragma .nodestroy for easier custom destructors
...
(cherry picked from commit 55da84e141 )
2019-06-27 18:13:55 +02:00
Andreas Rumpf
cd49bba7b3
[bugfix] proper destruction for strings/seqs for --newruntime
...
(cherry picked from commit 7e4748beee )
2019-06-27 18:13:55 +02:00
Araq
cb4bb4d6c7
[bugfix] newruntime: trivial closure iterator works
...
(cherry picked from commit 6adcc09877 )
2019-06-20 11:59:50 +02:00
Araq
cd35f9664c
[refactoring] closureiters.nim: style change
...
(cherry picked from commit c83914b435 )
2019-06-20 11:59:50 +02:00
Araq
0ba1624325
wip
...
(cherry picked from commit 50afafdb38 )
2019-06-20 11:59:50 +02:00
Andreas Rumpf
6ad45a1c97
WIP: closures for the newruntime [ci skip]
...
(cherry picked from commit af10788dcc )
2019-06-20 11:59:50 +02:00
Andreas Rumpf
aacc97e854
[bugfix] owned closures ( #11544 )
...
(cherry picked from commit c65a5d754b )
2019-06-20 11:59:50 +02:00
Araq
8d46524b1b
[bugfix] fixes #11517
...
(cherry picked from commit ab36ffbeb1 )
2019-06-20 11:55:37 +02:00
Araq
81f15184e5
fixes #11436
...
(cherry picked from commit 296c48de5e )
2019-06-20 11:53:37 +02:00
Araq
63116d94ae
[bugfix] nimpretty: better alignment; fixes #11467
...
(cherry picked from commit 57a83df745 )
2019-06-16 17:19:43 +02:00
Araq
21910d6eb1
[bugfix] nimpretty: fixes #11470
...
(cherry picked from commit 165ea46284 )
2019-06-16 17:18:58 +02:00
Araq
7bfde5fa40
[bugfix] nimpretty: fixes #11468
...
(cherry picked from commit af39f26a3a )
2019-06-16 17:18:58 +02:00
Araq
9797da3615
[refactoring] liftdestructors.nim is callable from lambdalifting; refs #11217
...
(cherry picked from commit b056d32a79 )
2019-06-16 17:17:41 +02:00
Arne Döring
0af9085e78
fix regression in semfold for old right shift ( #11477 )
...
(cherry picked from commit e4d0f4fee0 )
2019-06-16 17:17:41 +02:00
Araq
e1c29d7a19
[refactoring] liftdestructors is now a module of its own
...
(cherry picked from commit c07973e313 )
2019-06-16 17:17:41 +02:00
Araq
32cecf3a42
[other] make typeAllowed easier to debug by using structured programming
...
(cherry picked from commit 549d8cc0c6 )
2019-06-16 17:17:41 +02:00
Arne Döring
4c8a02165e
[refactoring] refactor the compiler and stdlib to deprecation warnings ( #11419 )
...
(cherry picked from commit c7e1c665a1 )
2019-06-16 17:17:41 +02:00
narimiran
8dfebb3282
Revert "VM can now cast integer type arbitrarily. ( #11459 ) [feature]"
...
This is a new feature, which shouldn't be backported.
2019-06-16 17:15:23 +02:00
Arne Döring
94177f7357
VM can now cast integer type arbitrarily. ( #11459 ) [feature]
2019-06-10 19:58:11 +02:00
Andreas Rumpf
caf93f4355
nimpretty: smart tabs support, fixes #9399 [bugfix]
2019-06-10 10:50:15 +02:00
Andreas Rumpf
cb47e49d3b
nimpretty: keep a seq of tokens instead of a single string to enable better transformations [refactoring]
2019-06-09 22:22:50 +02:00
Andreas Rumpf
9f82e07b2d
nimpretty: fixes #10156 [bugfix]
2019-06-08 00:00:00 +02:00
Arne Döring
99a4fed96b
fix for passing tuples as static params to macros ( #11423 ); fixes #10751 [bugfix]
...
* add vm value preparation proc
* small optimization
2019-06-07 14:34:59 +02:00
Araq
667af87e66
nimpretty: fixes #9505 [bugfix]
2019-06-07 12:59:31 +02:00
Araq
790bc5b07b
nimpretty: fixes #10177 [bugfix]
2019-06-07 11:50:56 +02:00
Araq
447cc1ff09
nimpretty: fixes #10295
2019-06-07 10:37:00 +02:00
Araq
4296bddccb
fixes #11412
2019-06-06 07:56:19 +02:00
Araq
8cc9753285
fixes #11405
2019-06-05 16:26:23 +02:00
andri lim
c16a753822
fix macrocache implementation ( #11404 )
...
* macrocache improvements
* fix macrocache implementation
2019-06-05 14:56:45 +02:00
Arne Döring
efbf43d4a9
intVal works now on enum field symbols ( #11403 )
...
* intVal works now on enum field symbols
* disable flakey titerators test
2019-06-05 14:55:47 +02:00
Arne Döring
cb45527e37
pass typedesc as NimNode to macros ( #11400 )
...
* change typedesc's design in macros
* Manual and changelog entry.
* add link to RFC
2019-06-05 09:17:04 +02:00
Andreas Rumpf
7215341190
make fullpaths the default in error messages and stack traces for mor… ( #11385 )
...
* make fullpaths the default in error messages and stack traces for more convenient development
* split up -d:release into -d:release and -d:danger flags
* workaround a Nim config parser bug
* fixes an old nim config parser bug
* make megatest green again
* make nimpretty tests work again
* make nimsuggest green
2019-06-05 08:02:54 +02:00
Jasper Jenkins
fc4f0808c4
parameter runtime discriminators ( #11397 )
...
* allow param for runtime discriminator construction
2019-06-04 22:10:39 +02:00
Araq
7c5e7a4f6a
disable the new CaseTransition warning for the Nim compiler itself
2019-06-03 12:00:28 +02:00