Arne Döring
2fee89f7db
fix #13255 ( #13275 ) [backport]
2020-02-09 13:51:36 +01:00
Jasper Jenkins
796aafe7e0
make case-object transitions explicit, make unknownLineInfo a const, replace a few magic numbers with consts ( #13170 )
2020-01-17 10:34:31 +01:00
Andreas Rumpf
eadd1ba9ed
fixes #13112 ( #13127 )
...
* improve line error information
* fixes #13112
2020-01-13 15:47:17 +01:00
Araq
a7b4b2ed54
fixes a bug that kept sugar.collect from working with for loop macros [backport]
2019-12-24 17:33:27 +01:00
Jasper Jenkins
2e7c9eb6a8
case coverage error message for char ( #12948 )
2019-12-22 10:10:46 +01:00
Jasper Jenkins
3c38edf563
Better case coverage error message for alias and range enum ( #12913 )
2019-12-18 10:29:01 +01:00
Andreas Rumpf
83a736a34a
ARC: cycle detector ( #12823 )
...
* first implementation of the =trace and =dispose hooks for the cycle collector
* a cycle collector for ARC: progress
* manual: the .acyclic pragma is a thing once again
* gcbench: adaptations for --gc:arc
* enable valgrind tests for the strutils tests
* testament: better valgrind support
* ARC refactoring: growable jumpstacks
* ARC cycle detector: non-recursive algorithm
* moved and renamed core/ files back to system/
* refactoring: --gc:arc vs --gc:orc since 'orc' is even more experimental and we want to ship --gc:arc soonish
2019-12-17 17:37:50 +01:00
Neelesh Chandola
7ebb2baa6c
Assigning template to var/let/const gives a proper error ( #12851 )
...
* Assigning template to var/let/const gives a proper error
* Fix style
2019-12-09 08:19:40 +00:00
Clyybber
7e747d11c6
Cosmetic compiler cleanup ( #12718 )
...
* Cleanup compiler code base
* Unify add calls
* Unify len invocations
* Unify range operators
* Fix oversight
* Remove {.procvar.} pragma
* initCandidate -> newCandidate where reasonable
* Unify safeLen calls
2019-11-28 17:13:04 +01:00
Andreas Rumpf
f69ee294c8
bugfix that enables the 'since' template [backport]
2019-11-07 14:20:39 +01:00
Andreas Rumpf
7192b13609
some progress on bug #12443
2019-10-27 17:50:30 +01:00
Araq
61ea85687c
refactoring: --newruntime consists of 3 different switches
2019-10-20 08:11:07 +02:00
Arne Döring
7cf3395d85
refactor illegal iterator assignment detection ( #12212 )
...
* refactor illegal iterator assignment detection
* delete crappy test
2019-10-11 08:43:58 +02:00
Clyybber
85db42ad8c
Fixes #10514 ( #12268 )
...
* Fixes #10514
(cherry picked from commit f6f789bb4db2a367384ba6ad75706edd503de1f8)
* Add comment
* Add changelog entry
2019-09-28 19:50:20 +02:00
Clyybber
ed1d41c51e
Small ast.nim cleanup ( #12156 )
...
* Remove sonsLen
* Use Indexable
2019-09-09 11:54:15 +02:00
Andreas Rumpf
326a333c8b
Merge pull request #12099 from cooldome/destructor_too_late
...
fixes #12092
2019-08-31 19:25:19 +02:00
cooldome
2b565aad89
Support iterators returning lent T ( #11938 )
...
* lent iterators
* rebase tests
* update changelog
* fix comments, more tests
2019-08-31 19:23:54 +02:00
Andrii Riabushenko
a388c35741
support forward declared destructors
2019-08-31 09:56:39 +01:00
Andrii Riabushenko
a055f628f4
fixes #12092
2019-08-31 09:49:47 +01:00
Andreas Rumpf
2a3b056314
fixes #12042 ( #12083 )
...
* fixes #12042
* make tests green again
2019-08-29 19:09:54 +02:00
Andreas Rumpf
9203d3a982
fixes 5870 ( #11704 )
...
* fixes #5870
* make tclosure test green again
* this check is correct but breaks some Nimble packages
2019-08-29 07:49:58 +02:00
narimiran
329e169e96
address the comments
2019-08-27 14:49:32 +02:00
Oscar Nihlgård
def6234903
Fix several float range issues
2019-08-27 14:45:19 +02:00
Arne Döring
ae9bb4474b
fixes #12033 ( #12039 )
2019-08-26 20:14:21 +02:00
nc-x
b68380f09b
fixes #11872 ; include now gives a proper error message for all invalid infix operators ( #11965 )
2019-08-17 19:45:47 +02:00
Andreas Rumpf
81ddc67785
[refactoring] compiler: simplified markUsed
2019-08-08 22:43:58 +02:00
Andrii Riabushenko
4c73139316
revert changes
2019-07-25 23:18:20 +01:00
Andrii Riabushenko
d7bc4e43a2
fixes #11826
2019-07-25 23:02:04 +01:00
Araq
4137a4dbf3
[feature] detect unused imports
2019-07-17 22:36:23 +02:00
Araq
87a2ced1ba
there is only one style -- my style
2019-07-10 19:17:06 +02:00
Araq
73cc029fec
fixes linter regressions
2019-07-10 18:59:27 +02:00
Araq
c94647aeca
styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
2019-07-10 12:42:41 +02:00
Andreas Rumpf
465815e894
improved the error message for #11494 ; closes #11494
2019-07-06 23:59:23 +02:00
Arne Döring
7d5d9f7703
introduce internal Int128 type, use it to fix case stmt checks ( #11652 )
...
* initial version of int128
* use int128 in case stmt
* fixes #11552
2019-07-05 22:45:32 +02:00
Timothee Cour
64168d4aea
fixes #8405 : -d:useNimRtl now works even when {.rtl.} procs are used at compile time; CTFFI now works with {dynlib} ( #11635 )
2019-07-03 23:57:52 +02:00
alaviss
993b3909a8
[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
2019-06-26 14:38:19 +02:00
Andreas Rumpf
35df59b3ce
[bugfix] fixes #11556
2019-06-21 20:38:18 +02:00
Araq
c07973e313
[refactoring] liftdestructors is now a module of its own
2019-06-12 08:45: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
e68adca0c9
fixes #6777 ( #11347 )
2019-05-28 22:00:01 +02:00
Jasper Jenkins
f774426095
Smarter variant object construction ( #11273 )
2019-05-26 21:22:02 +02:00
Andreas Rumpf
16aa10dfe1
fixes #10038 ; deprecate generic methods, they are unreliable
2019-05-25 23:56:16 +02:00
Arne Döring
f94ec363ab
Allow void macro result ( #11286 )
...
* allow void macro result
* add test for void macro result type
2019-05-21 21:31:40 +02:00
Ico Doornekamp
c01f7bfdaf
More specific error message for unsupported recursion in iterators ( #11283 )
2019-05-20 15:22:42 +02:00
Arne Döring
aeb6ec27de
fix for return in macro ( #9666 ); fixes #5874
2019-05-20 12:18:53 +02:00
Jasper Jenkins
90ed904c4d
range/case fixes ( #11264 )
2019-05-16 16:36:40 +02:00
Jasper Jenkins
6fc74cec55
Iterator fixes ( #11234 )
2019-05-13 20:50:21 +02:00
Arne Döring
b92fd30282
rename tyExpr/tyStmt to tyUntyped/tyTyped ( #11227 )
2019-05-11 10:11:08 +02:00
Andreas Rumpf
cd79c6f532
Merge pull request #11159 from JasperJenkins/const-named-tuple-unpack
...
Const named tuple unpacking
2019-05-08 17:50:41 +02:00
Clyybber
cc28eef38e
Replace countup(x, y) with x .. y
2019-05-07 12:37:28 +02:00