Clyybber
62394616e8
DFA and injectdestructors cleanup ( #14824 )
...
* DFA and injectdestructors cleanup
* More precise write analysis
* Cleanup obsoleted path
* Unify defInstrTargets and useInstrTargets
* Misc cleanups
* Nicer CFG printing
* Misc cleanups 2
2020-06-28 19:36:30 +02:00
Clyybber
394a56650a
Fix #14647 ( #14776 )
...
* Fix #14647
* Correct fix
* Typo and add test
* For real now :p
2020-06-28 17:47:47 +02:00
Timothee Cour
0c56eeda0e
expr => untyped; stmt => typed ( #14804 )
...
* expr => untyped; stmt => typed
* changelog + comment
2020-06-25 10:22:08 +02:00
Timothee Cour
32f335f594
fix #14802 ( #14803 )
2020-06-25 08:00:19 +02:00
Danil Yarantsev
80952cadaa
Reject casts to builtin typeclasses ( #14788 )
...
* Closes #14231 , closes #14452
* Merge test to tcast.nim
2020-06-24 22:32:01 +02:00
Miran
6bf2990f66
[backport] fix #14748 , move gdb files to other section of installer.ini ( #14772 )
2020-06-23 20:36:59 +02:00
Juan Carlos
28510a9da9
Deprecated laxStrings for mutating the internal zero terminator on strings and its Deprecated code cleaned out ( #14766 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-06-23 13:20:53 +02:00
Juan Carlos
c3459c7b14
Deprecate oldNewlines, clean out deprecated code from oldNewlines ( #14763 )
2020-06-23 11:22:07 +02:00
Araq
ebd1cc0265
minor bugfixes for 'func' and .borrow
2020-06-23 10:58:55 +02:00
Andreas Rumpf
da29222f86
init checks and 'out' parameters ( #14521 )
...
* I don't care about observable stores
* enforce explicit initializations
* cleaner code for the stdlib
* stdlib: use explicit initializations
* make tests green
* algorithm.nim: set result explicitly
* remove out parameters and bring the PR into a mergable state
* updated the changelog
2020-06-23 10:53:57 +02:00
Timothee Cour
511bd947d3
fix bug in semgnrc: runnableExamples should not semcheck, even with > 1 arg ( #14768 )
2020-06-23 10:06:36 +02:00
Andreas Rumpf
451129de42
fixes #14240 [backport:1.2] ( #14757 )
2020-06-22 14:11:13 +02:00
Andreas Rumpf
8df20276c9
fixes #14458 [backport:1.2] ( #14756 )
2020-06-22 13:06:22 +02:00
Andreas Rumpf
3ba0c30758
sizeof for empty objects/tuples should be 1; fixes #14690 ( #14751 )
2020-06-21 19:58:37 +02:00
Araq
45bc6954c5
improve the parser's error message
2020-06-19 10:50:39 +02:00
Araq
522bc8dda1
added a space
2020-06-19 10:32:16 +02:00
Timothee Cour
bb62feff72
fix #14691 docgen works again for methods ( #14701 )
...
* fix #14691 docgen methods
* fixup
2020-06-18 08:47:16 +02:00
Timothee Cour
7df27b5035
[cleanups] doassert => doAssert; mark deadcode ( #14711 )
2020-06-17 20:25:25 -07:00
Timothee Cour
45cac4afda
fix #14179 , fix #14142 , make CI 1.4x faster (2x faster locally) ( #14658 )
...
* fix #14142 : no more clash with: import os + use of existsDir/dirExists/existsFile/fileExists/findExe in config.nims
* remove a comment
* Revert "fixes the regression #12860 caused; hotfix"
This reverts commit 3d2459bdc0 .
* Revert "Undefine `paramCount` & `paramStr` in nimscript.nim for *.nims (#12860 )"
This reverts commit d38853c504 .
* noNimScript => noWeirdTarget + noNimJs
2020-06-16 08:56:12 +02:00
Timothee Cour
de5cde473a
hintMsgOrigin now works in VM code (#14678 )
...
* `hintMsgOrigin` now works in VM code
* remove a simplification for now
2020-06-16 08:49:57 +02:00
Timothee Cour
faedb14a16
misc cleanups in compiler msgs: use toHumanStr, etc ( #14677 )
2020-06-15 21:17:24 -07:00
jcosborn
5a22d6b57b
fix codegen bug due to changing existing symbol declaration in template ( #14666 )
2020-06-15 08:40:12 +02:00
alaviss
d749c8cd87
compiler/commands: make gitHash settable at compile-time. ( #14654 )
...
This is useful for building nightlies, since we will be building from a
generated source archive and git metadata is lost there.
2020-06-14 11:22:55 +02:00
Araq
5a26c3799b
reorder.nim: fixed typos
2020-06-12 11:57:29 +02:00
Timothee Cour
e30a08103d
remove tyOpt, mOpt ( #14636 )
...
* remove tyOpt, mOpt
* fixup
2020-06-12 11:03:52 +02:00
Timothee Cour
8bbdb8f43f
fix #14545 windows CI docs ( #14590 )
...
* fix #14545 windows paths
* add lib/std/private/strutils2.nim
* remove dependency strutils2 => strutils
* address comment: lib/std/private/strutils2.nim => compiler/strutils2.nim
2020-06-10 14:10:57 +02:00
Andreas Rumpf
6085ad95ff
fixes #14279 ( #14618 )
2020-06-09 20:39:26 +02:00
Andreas Rumpf
b3029ba213
fixes #14578 ( #14615 )
2020-06-09 17:05:01 +02:00
lbartoletti
30c09e4607
[OpenBSD] Add arm support ( #14608 )
...
* add arm support to openbsd
* use clang on openbsd
2020-06-08 20:06:04 +02:00
Andreas Rumpf
e3f80e434a
fixes #14557 ( #14607 )
2020-06-08 14:32:45 +02:00
Clyybber
52841dba09
Fix #14568 ( #14583 )
...
* Fix #14568
* Add testcase
* Fix bogus test
* Adapt other failing tests
* Declarations are always first writes
2020-06-07 23:32:41 +02:00
Andreas Rumpf
754a196d47
fixes #14315 ( #14594 )
2020-06-07 23:29:26 +02:00
Andreas Rumpf
419dbd573d
fixes #14118 ( #14595 )
2020-06-07 20:11:42 +02:00
Andreas Rumpf
66c50c2ffc
implement the 'bind' statement for generics, it was an oversight that this was never implemented ( #14584 )
2020-06-07 09:55:56 +02:00
Andreas Rumpf
32083c7ff8
more precise analysis about 'observable stores' [backport:1.2] ( #14582 )
2020-06-06 21:28:46 +02:00
Timothee Cour
61f2f1f5c5
fix #14576 addr of param (including for lent) now works with nim js ( #14577 )
...
* fix #14576 addr(param) now works in nim js
* workaround https://github.com/nim-lang/Nim/issues/14578
2020-06-06 20:15:24 +02:00
Araq
336f1e63d0
reorder.nim: fixes the indentation
2020-06-06 20:08:57 +02:00
Danil Yarantsev
b19ad22b90
Fix #14570 ( #14571 )
...
* Fix #14570
2020-06-06 09:31:19 +02:00
Timothee Cour
7cdf470269
refs #14545 fix snippet errors: avoid showing confusing errors when they are expected ( #14569 )
2020-06-05 19:04:39 -07:00
Araq
0824fdd061
fixes #14562
2020-06-05 16:15:13 +02:00
Timothee Cour
01f6e505c8
bug fixes with sfMainModule, hints, mainPackageNotes, mainPackageId, hintSuccessX ( #14555 )
...
* SuccessX `out` now works with --compileOnly and jsonscript; fix bugs in jsonscript
* several bug fixes; eg: `nim doc lib/system/io` now is sane
* dummy edit to force docs CI
2020-06-04 10:40:17 +02:00
Timothee Cour
4ba34522f6
[cleanup] docgen: remove docOutdir now that outDir is always set ( #14554 )
2020-06-03 19:20:41 -07:00
Timothee Cour
4301a3da9d
* honor --errorMax even for tools (eg drnim, nim doc) ( #14546 )
...
* fix a bug that prevented nim doc compiler/nim on windows
2020-06-02 18:54:33 +02:00
cooldome
e5b64af831
Implement rendering of []=, {}, {}= braces ( #14539 )
...
* render curly braces
* fix typo
* fix test
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-06-01 19:56:17 +02:00
Timothee Cour
3cf88c2b49
walkDirRecFilter, update doc CI filter, compiler/index.nim for docs + various other fixes ( #14501 )
...
* update doc CI filter to include the files mostly likely to require doc rebuild
* remove code duplication in ./config/nimdoc.cfg; show link to compiler docs, various fixes
* walkDirRecFilter, factor nativeToUnixPath workaround
* glob for getRst2html
* docslocal: 40s to build all docs
* revert code dedup in github actions which did not work alas...
* fixups
2020-06-01 19:21:41 +02:00
Andreas Rumpf
75e579ff8e
parser.nim: minor refactorings ( #14540 )
2020-06-01 19:04:28 +02:00
Danil Yarantsev
3698f197f1
Change severity of template instantiation message [backport] ( #14526 )
...
* Change severity of template instatiation msg
* Add a test
* Trailing newline argh
2020-06-01 17:07:01 +02:00
Timothee Cour
0a27cca4b5
runnableExamples: correctly handle multiline string litterals ( #14492 )
...
* runnableExamples: correctly handle multiline string litterals
* address comments: improve doc comments + variable namings
2020-06-01 15:56:29 +02:00
Andreas Rumpf
0db148163b
fixes --warningAsError implementation ( #14538 )
2020-06-01 15:41:14 +02:00
Danil Yarantsev
00ec43305e
Fix compiles for nimsuggest [backport] ( #14527 )
...
* Handle nimsuggest in tryExpr
* Added test
2020-06-01 15:06:45 +02:00