cooldome
283698b1ec
fix #15707 ( #15870 )
...
(cherry picked from commit 7b19217798 )
2020-11-09 16:24:20 +01:00
flywind
8f35bca839
fix #12558 ( #15864 )
...
* fix #12558
* Update compiler/pragmas.nim
(cherry picked from commit 673c5990c6 )
2020-11-09 16:24:00 +01:00
cooldome
992912e21d
static[T] related fixes ( #15853 )
...
* close #9679
* close #7546
* close #9520
* close #6177
(cherry picked from commit cdd459dd60 )
2020-11-09 16:21:11 +01:00
cooldome
ca53629c42
fix #15609 ( #15856 )
...
* fix #15609
* fix test
(cherry picked from commit fa5f225efc )
2020-11-09 16:21:03 +01:00
cooldome
1c027d591c
Fix #12636 ( #15850 )
...
* close #11142
* fix #12636
* undo unwanted changes
* fix illegal recursion case
(cherry picked from commit 3af7818af4 )
2020-11-09 16:20:43 +01:00
flywind
64ded4a51f
fix #15463 ( #15831 )
...
(cherry picked from commit a8af664e8b )
2020-11-09 16:18:03 +01:00
cooldome
c2263c685f
Use modern enums in compiler ( #15775 )
...
(cherry picked from commit 00b495de95 )
2020-11-09 16:14:22 +01:00
cooldome
01403f8cfa
fix static[Slice[T]] as argument issue ( #15842 )
...
(cherry picked from commit 4c19c5dfae )
2020-11-05 09:19:51 +01:00
flywind
740112c1e0
fix #12640 ( #15829 )
...
(cherry picked from commit b8bcf236dd )
2020-11-05 09:17:52 +01:00
flywind
bf446e8cec
follow #15818 and close #7109 ( #15823 )
...
* follow #15818 and close #7109
* Update compiler/jsgen.nim
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
(cherry picked from commit fde17b159f )
2020-11-05 09:17:42 +01:00
flywind
9d9bf12e1c
Closure iterators are not supported by VM ( #15818 )
...
(cherry picked from commit 5b4c17b5e7 )
2020-11-05 09:16:10 +01:00
flywind
45e87ade15
fix #8821 ( #15809 )
...
(cherry picked from commit 544cb107c7 )
2020-11-05 09:16:00 +01:00
flywind
29cd083e12
fixes #15717
...
(cherry picked from commit 558115fa29 )
2020-11-05 09:13:09 +01:00
flywind
e0aa7cf09b
fix #15145 ( #15816 )
...
(cherry picked from commit 27eb19cc48 )
2020-11-05 09:13:00 +01:00
flywind
f235eb48a0
fix #15651 ( #15800 )
...
* fix
* minor
(cherry picked from commit 80b0748d75 )
2020-11-05 09:12:17 +01:00
Miran
b14958caa0
fix #15702 , show enum fields documentation ( #15792 )
...
(cherry picked from commit 28bbcd9d45 )
2020-11-05 09:11:28 +01:00
flywind
f6f1594cef
[ closes #11625 and closes #2488 ]add global and threadvar(with --threads:off mode ) pragmas supports for JS backend ( #15772 )
...
* add global pragma support for js backend
* globalThis
* add support for threadvar
* more tests
* Update compiler/jsgen.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
(cherry picked from commit 2cfe5e0745 )
2020-11-05 09:11:02 +01:00
cooldome
c657af440a
canAlias improvement ( #15773 )
...
* canAlias improvement
* fix comment
(cherry picked from commit 6fe2e8977d )
2020-11-05 09:10:20 +01:00
flywind
a480cbddcc
closes #7658 ( #15784 )
...
* fix #7658
* more
(cherry picked from commit 17f08b2939 )
2020-11-05 09:08:49 +01:00
flywind
d426f75593
fix #15638 ( #15789 )
...
(cherry picked from commit f79ded3cb6 )
2020-11-05 09:08:14 +01:00
cooldome
e39b01e126
fix #15756 ( #15761 )
...
* fix #15756
* simplify test
(cherry picked from commit 610e9b2fe9 )
2020-11-05 09:06:45 +01:00
cooldome
a4f9bc55c7
ARC now capable of custom extra alignment. Ref, closure and seq support. ( #15697 )
...
(cherry picked from commit 0956a99537 )
2020-11-05 09:06:39 +01:00
cooldome
afb5212fe0
fix #15752 ( #15754 )
...
(cherry picked from commit f8cac6bbbc )
2020-11-05 09:05:39 +01:00
Timothee Cour
3326f1df1d
[backport] fix #15595 procvar == works in VM ( #15724 )
...
(cherry picked from commit 3bdc000521 )
2020-11-05 09:03:47 +01:00
Andreas Rumpf
a156484553
ensure the Nim compiler works with --experimental:strictFuncs --experimental:views [backport:1.4] ( #15737 )
...
(cherry picked from commit cf01945f54 )
2020-10-27 09:06:45 +01:00
Jason Beetham
2351b66e08
Fixed iteration limit hit from execproc ( #15723 ) [backport:1.2] [backport:1.4]
...
When calling procs from Nim in Nimscript you could hit the VM iteration limit even though the code is functioning properly. This resolves that by making the iteration limit reset eachtime you call a proc.
(cherry picked from commit a87617956f )
2020-10-27 09:02:11 +01:00
Timothee Cour
4e91c11eff
fix #15704 #15597 wrong VM register was freed ( #15705 )
...
* fix #15704 #15597 wrong VM register was freed
* same treatment for nkCheckedFieldExpr
* note concerning HighRegisterPressure
* bump NimPatch
* Update lib/system.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
(cherry picked from commit d4c2e2c53f )
2020-10-27 09:00:51 +01:00
Timothee Cour
e89592787b
[minor] nimVMDebug: fix codeListing formatting for jump-to-file to work ( #15711 )
...
(cherry picked from commit 64eb62889a )
2020-10-27 08:57:18 +01:00
Clyybber
9e8ad86d6a
Revert "fixes #15280 [backport:1.2] ( #15281 )" ( #15700 )
...
This reverts commit 3f00a738db .
(cherry picked from commit d4022ebe53 )
2020-10-24 17:16:02 +02:00
cooldome
d1924f2852
fix #15662 ( #15678 )
...
* fix #15662
* alternative fix
* fix spacing
(cherry picked from commit ae320b4e7d )
2020-10-24 17:15:08 +02:00
Andreas Rumpf
e7b7356bd1
fixes view types for sizeof() and --gc:orc ( #15680 )
...
(cherry picked from commit 64016ddedc )
2020-10-22 20:21:49 +02:00
Andreas Rumpf
ce94ce40c7
fixes #15652 [backport:1.4] ( #15679 )
...
(cherry picked from commit 8358974b73 )
2020-10-22 20:21:42 +02:00
Miran
6d99de7c2c
[backport: 1.4] Better linebreaks ( #15658 )
...
(cherry picked from commit d8a6b0b04e )
2020-10-22 20:20:49 +02:00
Andreas Rumpf
eb04535b53
fixes bootstrapping for any machine that has a Nim already installed [backport:1.4] ( #15660 )
...
(cherry picked from commit 9a059657ca )
2020-10-21 11:09:13 +02:00
narimiran
38ebd767db
even more "eg" fixes [ci skip]
...
(cherry picked from commit b418c54ec4 )
2020-10-21 11:07:40 +02:00
Clyybber
45977c2d70
Fix commentOffsetA for doc comments ( #15643 )
...
(cherry picked from commit f20e485827 )
2020-10-21 11:03:47 +02:00
cooldome
1e9746aade
arc allocation method aligned ( #15588 )
...
* progress
* fix typo
(cherry picked from commit 833035bacd )
2020-10-21 11:02:10 +02:00
cooldome
35f5a3e48f
Tables, use sink val arguments more actively ( #15625 )
...
(cherry picked from commit 04f8fcfbd0 )
2020-10-21 11:01:50 +02:00
Clyybber
d86d7c9fe1
Fix #15599 ( #15601 )
...
* Fix #15599
* Add test
(cherry picked from commit 66cd9c2e57 )
2020-10-21 10:58:57 +02:00
Andreas Rumpf
da4aa2e1fb
renamed '=' to '=copy' [backport:1.2] ( #15585 )
...
* Assign hook name changed to `=copy`
* Adapt destructors.rst
* [nobackport] Duplicate tests for =copy hook
* Fix tests
* added a changelog entry
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-10-15 12:52:30 +02:00
Andreas Rumpf
644eb4dd54
ORC: critical bugfix for the cycle analyser, introduce -d:nimStressOrc for easier stress testing ( #15572 )
2020-10-14 22:26:21 +02:00
alaviss
c2ba4ef979
suggest: try to find the implementation of a symbol when def is used ( #15555 )
...
* suggest: try to find the implementation of a symbol when def is used
* suggest: return all declarations of the symbol on `def`
2020-10-14 17:08:56 +02:00
Clyybber
977bccdbff
Make useVersion:1.0 disable the proc arg sym change ( #15570 )
...
* Make useVersion:1.0 disable the proc arg sym change
* Also do this for useVersion:1.2
2020-10-14 16:07:25 +02:00
Andreas Rumpf
8978112457
fixes a C code generator regression, no need to backport, only the 1.4 line is affected ( #15569 )
2020-10-14 13:58:36 +02:00
Benjamin Lee
12c8ef5949
Update the list of GC options when raising an error ( closes #15547 ) ( #15553 )
2020-10-14 11:20:59 +02:00
Andreas Rumpf
c664fb2843
sigmatch: hotfix [backport] ( #15565 )
2020-10-14 09:55:47 +02:00
cooldome
9668a1106d
Fix 15543 ( #15544 )
...
* fix #15543
* fix spacing
* fix test
* simplify test for freebsd platform
2020-10-12 10:12:32 +01:00
Andreas Rumpf
d66e274e1a
refactoring: moved setOutFile to where it belongs
2020-10-11 20:44:04 +02:00
Andreas Rumpf
3492178494
refactoring: removed cmdlinehelper.mainCommand callback
2020-10-11 20:44:04 +02:00
Andreas Rumpf
992952d868
nimpretty: do not produce 'line too long' messages ( #15541 )
2020-10-10 17:46:22 +02:00