Timothee Cour
0de3d4292f
fix #16993 , #18054 , #17835 runnableExamples now works with templates and nested templates ( #18082 )
2021-06-02 09:02:14 -07:00
Andreas Rumpf
6768f507fb
refactoring: removed empty withBracketExpr template ( #18152 )
2021-06-02 13:14:10 +02:00
Andreas Rumpf
f10eef29b5
fixes #18059 ( #18140 )
...
* fixes #18059
2021-06-02 13:13:23 +02:00
Andreas Rumpf
63db2b19bf
use dragonbox algorithm; alternative to #18008 ( #18139 )
...
* use dragonbox algorithm; alternative to #18008
* removed unsafe code
2021-06-01 22:29:53 +02:00
Andrey Makarov
ba3ec7b049
docs: Latex generation improvements ( #18141 )
...
* docs: improve Latex generation
* make it work on Windows + fix ] escaping
* minor fixes with escapes and style
2021-06-01 20:47:23 +02:00
Dylan Modesitt
06d50bfd4c
Fixes #5034 illformed AST from getImpl with proc returning value ( #17976 )
...
* Fixes 5034
* address comments
2021-05-31 22:51:32 +02:00
Saem Ghani
b7ad29e692
fix #18113 ( #18124 )
2021-05-31 13:27:44 +02:00
Yuriy Glukhov
a6bd6c7ed8
Fixes #17849 ( #18055 ) [backport:1.2]
...
* Fixes #17849
* Update compiler/closureiters.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-05-30 22:38:33 +02:00
Timothee Cour
3b1aabdcff
change --hint[X] => --hint:X in nim repo (avoids shell quoting issues) ( #18085 )
2021-05-26 09:51:48 +02:00
Juan Carlos
e12597589f
Error message minor ( #18021 )
...
* Update compiler/semtypes.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: flywind <xzsflywind@gmail.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-05-22 13:12:30 +02:00
Juan Carlos
6a5973882b
jsgen improve spacing ( #18048 )
...
* Fix inconsistent spacings in generated JS of jsgen
2021-05-20 15:48:46 +02:00
Andreas Rumpf
df429fa287
config system: special case -d:release and -d:danger [backport:1.4] ( #18051 )
2021-05-20 11:52:46 +02:00
Andreas Rumpf
558644725d
fixes #17943 ( #18045 )
...
* fixes #17943
* IC: test 'nim check --ic:on' for the full Nim compiler
* Update testament/testament.nim
Co-authored-by: Clyybber <darkmine956@gmail.com >
Co-authored-by: Clyybber <darkmine956@gmail.com >
2021-05-19 16:00:14 +02:00
Andreas Rumpf
53935b8b27
ARC: fixes memory leaks with newSeq used in a loop [backport:1.4] ( #18040 )
...
* ARC: fixes memory leaks with newSeq used in a loop [backport:1.4]
* Update tests/arc/tnewseq_legacy.nim
2021-05-18 21:45:37 +02:00
Clyybber
63fcb9e5f5
Disable performance hints by default (verbosity 1) ( #18024 )
2021-05-16 19:43:52 +02:00
Timothee Cour
3619a5a2aa
more informative error msg for undeclared field (A(badfield: 1) and a.badfield = expr) ( #17777 )
2021-05-16 10:03:22 -07:00
Clyybber
3614523664
Rework DFA traversal ( #18016 )
...
* enable using dbg: without a context
* Optimally joining first write/last read analysis
* Add test for #18002
* potLastReads -> potentialLastReads
2021-05-16 00:15:53 +02:00
Andrey Makarov
1568ae23c6
docgen: escape special characters in titles ( #18014 )
2021-05-15 06:53:38 +02:00
Andrey Makarov
97970d9dcc
doc2tex: generate docs to Latex (#17997 )
...
* `doc2tex`: generate docs to Latex
* address some comments
2021-05-14 07:30:47 +02:00
Andreas Rumpf
3bc625aff1
ORC: progress ( #18000 )
...
* ORC: progress
* ORC: bugfix; don't follow acyclic data even if only at runtime the subtype is marked as acyclic
* progress
* minor style changes
2021-05-12 22:00:37 +02:00
Andreas Rumpf
39ad9a69a9
ORC: improvements ( #17993 )
...
* ORC: improvements
* ORC: fix .acyclic annotation for ref objects
2021-05-12 07:15:05 +02:00
Andreas Rumpf
2c2ec48bc4
ORC: critical bugfix for mixing acyclic refs with cyclic refs [backport:1.4] ( #17991 )
2021-05-11 16:21:29 +02:00
Andreas Rumpf
378ee7f888
feature: the compiler can warn when you use the implicit 'result' variable ( #17988 ) [backport:1.2]
...
* implements #17855
2021-05-10 23:41:51 +02:00
Andreas Rumpf
a9ae5fe5be
since we have now so many virtual registers, reduce memory consumption for the register allocator ( #17985 )
2021-05-10 11:29:19 +02:00
Andreas Rumpf
d84a3b10b5
fixes #17675 ( #17981 )
2021-05-09 11:34:28 +02:00
Clyybber
72d6b59ffa
treetab: tiny cleanup ( #17929 )
...
* treetab: tiny cleanup
* Another tiny thing
* Explicitly move n
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
* Typo
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-05-09 00:56:37 +02:00
Andreas Rumpf
c14427dbf3
ORC: cursor inference bugfix ( #17973 )
...
* fixed a .cursor inference bug
* added a test case
2021-05-08 16:47:06 +02:00
Timothee Cour
38b41f893a
fix #17941 : UnusedImport works for var/let/const/type invoked inside a generic ( #17942 )
...
* fix #17941 : UnusedImport works for var/let/const/type invoked inside a generic
* fixup
2021-05-08 09:56:46 +02:00
Timothee Cour
e224865b3b
add astmsgs; add declared in msg for usage lint errors ( #17961 )
...
* add astmsgs; add `declared in` msg for usage lint errors
* fix test
* fix tests/tools/tlinter.nim
* std prefix
2021-05-08 06:43:52 +02:00
Andreas Rumpf
51f3ef6cb8
fixes #15848 [backport:1.2] ( #17959 )
2021-05-07 16:50:11 +02:00
Andreas Rumpf
56068101f6
tiny cleanup ( #17957 )
...
* tiny cleanup
* I'm not British
2021-05-07 13:56:37 +02:00
Andreas Rumpf
98cd1671a3
minor cleanups ( #17948 )
2021-05-06 13:27:40 +02:00
Andrey Makarov
706562f661
docgen: get rid of ropes ( #17939 )
2021-05-05 00:10:05 -07:00
Andreas Rumpf
d67ae4afa6
IC: codegen: fix ( #17931 )
2021-05-04 07:03:00 +02:00
Timothee Cour
01f316cf1f
mention -d:nimLegacyConvEnumEnum in error msg ( #17928 )
2021-05-03 23:06:15 +02:00
Andreas Rumpf
8ce69d5841
treetab: minor code cleanups ( #17927 )
2021-05-03 17:30:48 +02:00
Andreas Rumpf
fb86271556
system.nim cleanup some exported constants which should never have be… ( #17909 )
...
* system.nim cleanup some exported constants which should never have been exported
2021-05-01 11:10:40 +02:00
Timothee Cour
d0485e326a
bring back std/ prefix within compiler and ensure it works in bootstrap + bsd ( #17902 )
...
* [WIP] bring back std/ prefix within compiler and ensure it works in bootstrap + bsd
* refs https://github.com/nim-lang/Nim/pull/16282#discussion_r616846863
* sounds very similar to https://github.com/nim-lang/Nim/pull/14291
* more: vmops
* update tools/ci_generate.nim
* auto-generate freebsd.yml as well, to avoid duplication with openbsd.yml
* cleanup
* undo temporary CI removal
2021-04-30 22:27:53 +02:00
Timothee Cour
3192995ac9
close #16646 ; since now works with bootstrap nim post csources_v1 ( #17895 )
...
* revive #16627 now that csources_v1 was merged
* use dedent in rst.nim, refs https://github.com/nim-lang/Nim/pull/17257#discussion_r589025683
* fix test and improve rendering of a rst warning
2021-04-30 18:54:47 +02:00
Clyybber
76f93877cd
Small parser loop fix ( #17904 )
...
* Fix loop on error with nim check in semiStmtList
* Add test
2021-04-30 17:17:29 +02:00
Andrey Makarov
1640508348
more strict RST inline markup parsing ( #17827 )
...
* more strict RST inline markup parsing
* add test for unexpected bonus
* introduce `roPreferMarkdown`
2021-04-29 17:31:15 +02:00
Timothee Cour
87229e272e
fix #17853 (ascii message separator broke json nim dump) ( #17887 )
2021-04-29 02:25:08 -07:00
Timothee Cour
927ae26fad
externalToLink: use quoteShell to avoid issues with spaces in paths for {.link.} pragmas ( #17875 )
2021-04-29 09:01:00 +02:00
c-blake
601c050fcb
Implement https://forum.nim-lang.org/t/7848#50018 ( #17874 )
...
* Implement https://forum.nim-lang.org/t/7848#50018 with just the same
`SuccessX` hint category, build mode on a separate, final line, and
no change to how the mode is spelled for -d:release/-d:danger.
* Change to add a new BuildMode hint category and keep testament in sync
as per comment.
* Add "--hint:buildmode:off" to `defaultHintsOff`.
* Remove as requested.
* As requested for tests clean up.
* Address code review.
* Address code review.
* Mirror db45642311
2021-04-29 08:55:43 +02:00
Clyybber
b03d6c9b2f
Fix #17712 ( #17873 )
2021-04-27 13:03:26 +02:00
flywind
68e522ecec
Remove confusing <//> ( #17830 )
2021-04-26 09:04:52 +02:00
Saem Ghani
17db15f9b1
fix #17836 (typed macro isNil for proc params) ( #17841 )
...
thanks @alaviss for the test
2021-04-25 10:30:52 +02:00
Timothee Cour
ffe4328b35
--usenimcache (implied by nim r main) now caches some compile options to avoid recompiling when project was previously compiled with such options. (#17829 )
...
* `--usenimcache` (implied by `nim r main`) now caches some compile options
to avoid recompiling when project was previously compiled with such options.
* works
* add test
* changelog
* use std/with
2021-04-25 10:25:31 +02:00
flywind
6e8f0f8cfc
add colon ( #17834 )
2021-04-24 18:33:29 +01:00
Timothee Cour
80df21d9a3
--declaredlocs now shows location for T instead of static in proc fn(a: static T) (#17795 )
2021-04-23 23:22:04 +02:00