Andreas Rumpf
b53327c92a
fixes #9994
2018-12-15 14:30:21 +01:00
Andreas Rumpf
a87be40339
fixes #9985
2018-12-15 14:09:06 +01:00
Andreas Rumpf
39ae55e6e4
fixes #9995
2018-12-15 14:01:18 +01:00
Andreas Rumpf
e3a668a33b
--gc:destructors: baby steps
2018-12-15 13:54:41 +01:00
Andreas Rumpf
446f911a17
better error message for 'proc' that is not intended to be used as a typeclass
2018-12-15 09:09:46 +01:00
Andreas Rumpf
f76bd06643
fixes #9982
2018-12-14 20:03:12 +01:00
Andreas Rumpf
675b6f0773
fixes #9978
2018-12-14 17:15:03 +01:00
Araq
32c6b35d97
fixes yet another NimScript regression
2018-12-14 12:00:57 +01:00
Araq
f551b72fba
fixes #9965
2018-12-14 09:56:59 +01:00
Neelesh Chandola
f233b2fe8b
Merge remote-tracking branch 'upstream/devel' into better-error-message
2018-12-14 09:34:46 +05:30
Neelesh Chandola
6bdf7fdbce
enum types can now be assigned values from enum with holes ( #9958 )
...
* Fixes https://github.com/nim-lang/Nim/issues/9952
* Remove workaround from vccexe
2018-12-13 12:14:25 +01:00
Araq
9cc4a57768
os.nim: big refactoring, use the new pathnorm that was extracted by compiler/pathutils.nim; added os.relativePath
2018-12-13 12:05:50 +01:00
Alexander Ivanov
467f53512f
Show lineinfo of for in yield ( #9779 )
2018-12-13 10:38:32 +01:00
Neelesh Chandola
31cff752e0
Better error messages in enums which don't have ordinal types
2018-12-13 15:07:36 +05:30
Neelesh Chandola
e6c510bbbd
Check tyRange for exhaustiveness
2018-12-13 14:40:22 +05:30
Neelesh Chandola
fa4644006a
Check for ordinal type
2018-12-13 14:12:22 +05:30
Neelesh Chandola
b2411db541
Merge remote-tracking branch 'upstream/devel' into record-case
2018-12-13 13:59:46 +05:30
Neelesh Chandola
a3c4791e9c
Give error when case has an else branch even though all cases are already covered ( #9930 )
...
* Give error when case has an else branch even though all cases are already covered.
* Don't check for invalid else for type tyFloat..tyFloat128, tyString, tyError
* Remove unnecessary else in unittest.nim
* Fix sockets.nim
2018-12-13 09:08:10 +01:00
Neelesh Chandola
bb85869237
Undefine some symbols and globalOptions when processing nimscript ( #9945 ) [backport]
...
* Undefine some symbols when processing nimscript
* Undefine taintMode when processing nimscript
* Reload .cfg configuration
2018-12-13 09:05:24 +01:00
Neelesh Chandola
1f1d7b1088
Fix semRecordCase
2018-12-13 12:11:56 +05:30
Neelesh Chandola
b245b80e72
Fix nimsuggest build with clang on windows
2018-12-13 02:16:29 +05:30
Andreas Rumpf
e4ae7a8929
Merge pull request #8748 from LemonBoy/when-in-objects
...
Pervasive replacement of nkRecWhen in generic types
2018-12-12 18:19:52 +01:00
Araq
0ab1229c69
resolve merge conflicts
2018-12-12 18:16:53 +01:00
Andreas Rumpf
d9ae9201c4
Merge pull request #9937 from cooldome/pragmablock_custom_pragma
...
Language feature: implement custom pragmas in pragma blocks
2018-12-12 10:15:25 +01:00
Andrii Riabushenko
df0f0f2858
custom pragmas in pragma blocks
2018-12-11 23:35:46 +00:00
Andreas Rumpf
c682671fea
minor cleanups
2018-12-11 23:07:36 +01:00
Andreas Rumpf
c58f430e2e
Merge pull request #9916 from timotheecour/pr_ref_9906_errorMax
...
refs #9906 ; --errorMax:10 allows stopping after 10 errors (more robust than nim check)
2018-12-11 22:14:08 +01:00
Andreas Rumpf
3695819018
cleanup main.nim's code style
2018-12-11 22:06:15 +01:00
Andreas Rumpf
5ffa9a8be6
destructors: defensive programming against wrong generated destructor for string/seq
2018-12-11 22:02:18 +01:00
Andreas Rumpf
d20a273215
Merge pull request #9917 from timotheecour/pr_dump_msg
...
enhance `dump --dump.format:json` : report `out`, `hints`, `warnings`, document it ; closes #9513
2018-12-11 22:01:28 +01:00
Andreas Rumpf
bb1ce398af
Merge pull request #9881 from timotheecour/pr_ref_9880
...
refs #9880 show index and bound in lots of `index out of bounds` errors
2018-12-11 21:49:08 +01:00
Araq
46820b94a6
the linking step doesn't mind Windows' 8K command line limit anymore
2018-12-11 21:23:24 +01:00
Araq
77272ceb3c
fixes extccomp regressions
2018-12-11 21:23:24 +01:00
Araq
044c7d0921
fixes extccomp regressions
2018-12-11 21:23:23 +01:00
Araq
1946d1a61d
fixes extccomp regressions
2018-12-11 21:23:23 +01:00
Araq
8896770f8f
workaround against silly Windows command line length limitations for the upcoming megatest.nim
2018-12-11 21:23:23 +01:00
Arne Döring
2a4c09ff88
megatest can be executed
2018-12-11 21:23:21 +01:00
Andreas Rumpf
a8b53c97ee
Merge pull request #9929 from nc-x/fix-js-regression
...
tyProc does not require copying in JS codegen
2018-12-11 14:29:58 +01:00
Andreas Rumpf
6924b33141
Merge pull request #9924 from cooldome/destructor_hotfix
...
destructor hot fix
2018-12-11 12:47:23 +01:00
Araq
366b6be4fb
compiler refactoring: TSymSeq is gone for good
2018-12-11 12:37:05 +01:00
Neelesh Chandola
685a5544c4
tyProc does not require copying in JS codegen
2018-12-11 16:58:36 +05:30
Araq
4ec40796e6
fixes #9868
2018-12-11 10:28:56 +01:00
Andreas Rumpf
03c4231951
Merge pull request #9909 from nc-x/fix-regression
...
Fix enum regression
2018-12-11 08:36:15 +01:00
Neelesh Chandola
47c38cb98e
Better fix
2018-12-11 10:34:10 +05:30
Andrii Riabushenko
a9978db42f
destructor_hotfix
2018-12-10 23:23:46 +00:00
Andreas Rumpf
cd81f368d1
Merge pull request #9826 from cooldome/destructor_move_them_all
...
destructors: sink`em all
2018-12-10 15:46:19 +01:00
Andrii Riabushenko
d22fa09000
minor correction
2018-12-10 09:20:43 +00:00
Timothee Cour
9d10278a9c
--errorMax:0 means: unlimited
2018-12-09 23:39:57 -08:00
Timothee Cour
fc7b3a7c2a
enhance dump --dump.format:json
2018-12-09 21:45:15 -08:00
Timothee Cour
daaf50ae03
refs #9906 ; --errorMax:10 allows stopping after 10 errors
2018-12-09 19:11:08 -08:00