ringabout
81e7811e01
fixes nim check with orc ( #20456 )
...
* fixes nim check with orc
* fixes tests
* add tests
* fixes tests
* Update tests/arc/t20456.nim
2022-10-02 06:44:10 +02:00
Bung
0769b160c5
less test time costs ( #20479 )
2022-10-02 06:42:41 +02:00
Bung
567c3f055d
Fix #19224 For loops over a hardcoded empty array crash the compiler ( #20476 )
...
* Fix #11684 For loops over a hardcoded empty array crash the compiler
* Update t19224.nim
2022-10-01 23:19:07 +02:00
metagn
0b1650576c
move widestrs out of system ( #20462 )
...
* move widestrs out of system
* fix osproc
2022-10-01 22:35:09 +02:00
Bung
cbd9fee22a
fix #19678 Broken behavior with string ranges in case labels ( #20475 )
...
* fix #19678 Broken behavior with string ranges in case labels
* Update compiler/semtypes.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2022-10-01 18:17:07 +02:00
Andreas Rumpf
8d47bf1822
new move analyser2 ( #20471 )
...
* produce better code for closure environment creation
* new 'first write' analysis;
* scope based move analyser
* code cleanup
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com >
2022-10-01 16:46:51 +02:00
metagn
cfff454cf9
closed ambiguous enum defaults to first overload ( #20457 )
...
* closed ambiguous enum defaults to first overload
* add warning
* turn to hint
* work around config
2022-10-01 13:30:23 +02:00
metagn
24b81e9df6
remove hack for deprecated csize in compiler ( #20463 )
...
* remove hack for deprecated csize in compiler
* remove test
2022-10-01 09:07:52 +02:00
ringabout
3e43ea3384
make koch and tools work with nimPreviewSlimSystem ( #20459 )
2022-09-30 08:09:40 +08:00
Juan Carlos
1e635bb539
Undeprecate isvalidfilename ( #19643 )
...
* Remove deprecated isvalidfilename
* https://github.com/nim-lang/Nim/pull/19643#issuecomment-1235102314
* https://github.com/nim-lang/Nim/pull/19643#issuecomment-1235102314
* https://github.com/nim-lang/Nim/pull/19643#issuecomment-1235102314
* Add unittests
* Add more
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2022-09-29 12:22:29 +02:00
ringabout
f56085f21e
refactor dbFormat ( #19746 )
...
* refactor dbFormat
* add simple tests
2022-09-29 12:16:42 +02:00
Andreas Rumpf
77a65d3c33
fixed tstrimpl ( #20452 )
2022-09-29 09:41:00 +02:00
ringabout
a8cc5d1379
Unicode Operators are no longer experimental ( #20444 )
...
* Unicode Operators are no longer experimental
* fixes tests
* Update doc/manual.md
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2022-09-28 22:37:26 +02:00
ringabout
65c2518d5c
fix #19500 ; remove find optimization [backport: 1.6] ( #19714 )
...
* remove find optimization
close #19500
* save find to std
* add simple tests
* Apply suggestions from code review
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: sandytypical <43030857+xflywind@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2022-09-28 16:05:41 -04:00
metagn
919a889ba8
moderate system cleanup & refactor ( #20355 )
...
* system refactor, move out 600 lines
* compilation, slice, backwardsindex, misc_num moved out of system
* some procs/types moved into arithmetics, basic_types
* system no longer depends on syncio
* some procs moved around to fit with their surroundings
* make exceptions an import, old ops to misc_num
* move instantiationInfo back
* move back nim version, fix windows echo
* include compilation
* better docs for imported modules, fix unsigned ops
also remove ze, ze64, toU8, toU16, toU32 with nimPreviewSlimSystem
* fix terminal
* workaround IC test & weird csize bug, changelog
* move NimMajor etc back to compilation, rebase for CI
* try ic fix
* form single `indices`, slim out TaintedString, try fix IC
* fix CI, update changelog, addQuitProc
* fix CI
* try fix CI
* actually fix CI finally hopefully
* Update lib/system/compilation.nim
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com >
* update kochdocs
* hopefully fix csize uses for slimsystem
* fix tquit
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com >
2022-09-28 15:28:45 -04:00
metagn
de4b0346bd
store full definition AST for consts, fix noRewrite ( #20115 )
...
* continue #9582 for consts, close #9331 , fix #20114
also move extractPragma to ast to pave the way for things like {.strdefine: "abc".} etc
* changelog correctly
* fix jsgen
* update tgetimpl
* fix sighashes
* fix #19766 , add comment about postfix
* fix noRewrite LOL
refs #16620
* fix changelog
* fix destructors
2022-09-28 15:05:01 +02:00
ringabout
fdc6b0fb6e
fixes #19986 ; mutable view from immutable location ( #20134 )
...
* fixes #19986 ; mutable view from immutable location
* fixes the tests
2022-09-28 14:02:07 +02:00
konsumlamm
18cea8e9bd
Update message for checking cast ( #20145 )
...
* Update message for checking `cast`
* Update error messages in tests
2022-09-28 13:59:27 +02:00
ringabout
e33e9e4a32
fixes #20141 ; dereferencing pointer to incomplete type error with cast ( #20147 )
...
Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com >
2022-09-28 13:57:47 +02:00
ringabout
fe8feb46c6
fixes #19457 seqs are not properly updated in loop with ARC/ORC ( #19922 )
...
* test CI
* fixes #19457
* add comments
Co-authored-by: sandytypical <43030857+xflywind@users.noreply.github.com >
2022-09-28 13:12:08 +02:00
ringabout
80e739f2bf
fixes #19401 ; fixes #19402 ; rework Forward declaration and finalizer for ORC ( #20295 )
...
* fixes #19401 ; fixes #19402 ; rework Forward declaration and finalizer for ORC
* add more tests
* give it a name
* make more tests
* fixes tests
* hidden addr for cpp
* move code to a function
2022-09-27 20:07:26 +02:00
ringabout
3d2f0e2c7c
make more standard libraries work with nimPreviewSlimSystem ( #20343 )
...
* make more standard libraries work with `nimPreviewSlimSystem`
* typo
* part two
* Delete specutils.nim
* fixes more tests
* more fixes
* fixes tests
* fixes three more tests
* add formatfloat import
* fix
* last
2022-09-27 20:06:23 +02:00
n5m
6b4ea88734
use almostEqual in tstats.nim ( #20431 )
...
prefer math.almostEqual
2022-09-26 15:42:26 -04:00
n5m
9ca88a1889
fix #18128 rfind on empty needle returns rightmost index ( #20430 )
...
rfind on empty needle returns haystack len
2022-09-26 15:39:22 -04:00
Bung
e13cd40e21
fix #2614 improve error message when array of proc calling convention… ( #20379 )
...
fix #2614 improve error message when array of proc calling convention mismatch
2022-09-26 11:58:13 +02:00
ringabout
37ca97dd76
close #15955 ; add a test case ( #20414 )
2022-09-24 01:37:21 +08:00
ringabout
7739e23420
defaults to ORC ( #19972 )
...
* defaults to Orc
* bootstrap using refc
* use gc
* init orc defines
* unregister orc
* fix gc
* fix commands
* add prepareMutation for orc
* enable deepcopy for orc
* prepareMutation
* more fixes
* some cases
* bug #20081
* partial fixes
* partial fixes
* fixes command line
* more fixes
* build Nim with refc
* use gc
* more fixes
* rstore
* orc doesn't support threadpool
* more shallowCopy
* more fixes
* fixes unsafeNew
* workarounds
* small
* more fixes
* fixes some megatest
* tcodegenbugs1 refc
* fxies megatest
* build nimble with refc
* workaround tensordsl tests
* replace shallowCopy with move
* fixes action
* workaround
* add todo
* fixes important packages
* unpublic unregisterArcOrc
* fixes cpp
* enable windows
Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com >
2022-09-23 13:05:05 +02:00
ringabout
47b59e4d33
fix #17351 ; switch to c++17 and remove hacks ( #20407 )
...
* fix #17351 ; switch to c++17
* remove workaround
2022-09-23 11:16:43 +02:00
Aditya Siram
be4bd8a0ed
Fixes #20348 ; only respect the recursion limit if the symbol's generic type has been generated by the compiler ( #20377 )
...
Fixes #20348
2022-09-22 14:19:36 -04:00
ringabout
db8a62d480
fixes #20285 ; prevent oid time overflow at year 2038 ( #20338 )
...
* Revert "fixes #20285 ; prevent oid time overflow at year 2038"
This reverts commit dfcdb6ec2a .
* increase time to 64 bits and clean up
* add testcase
* inline consts
* add a changelog
* fixes #20285 ; prevent oid time overflow at year 2038
2022-09-22 21:15:27 +08:00
Bung
2afce84616
Improve error message when instantiating generics with object constructor ( #20358 )
...
* Improve error message when instantiating generics with object constructor
* follow suggestion
* Update compiler/semobjconstr.nim
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
* Update tests/errmsgs/t19882_2.nim
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
2022-09-21 21:11:39 -04:00
ringabout
70c25c45d6
fixes #20397 ; fixes stylecheck regression ( #20398 )
...
* fixes #20397 ; fixes stylecheck
* add testcase
2022-09-21 15:04:33 -04:00
ringabout
e0c1159fb3
fixes #20391 ; make of operator work with generics for ORC ( #20395 )
2022-09-21 10:29:39 +02:00
ringabout
de70128fcc
follow up #19968 ; add more tests ( #20396 )
2022-09-20 16:14:01 -04:00
Bung
08c02f0236
report expression has no type other than has to be used (or discarded… ( #20392 )
...
report expression has no type other than has to be used (or discarded) when typ is tyNone in discardCheck
2022-09-20 14:50:48 +02:00
Bung
a302b26e0e
fix #19882 Improve error message when instantiating generics that lac… ( #20356 )
...
* fix #19882 Improve error message when instantiating generics that lack a type
* Update tests/errmsgs/t19882.nim
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
2022-09-19 18:31:40 -04:00
ringabout
97259a5ab3
fixes #19713 ; Revert "Remove tlsEmulation enabled from Windows + GCC config" ( #19119 ) ( #20327 )
...
* Revert "Remove tlsEmulation enabled from Windows + GCC config (#19119 ) [backport:1.6]"
This reverts commit 77b696c2c9 .
* increase nimTlsSize to 48000
* enable for windows
* fixes tests
* fixes tlsEmulation:on
2022-09-19 09:16:54 +02:00
ringabout
f6dc30e52d
fixes Thread initializer for ARC/ORC on Macos ( #20368 )
...
* fixes Thread initializer for ARC/ORC
* another try
* fix
* use int
2022-09-16 16:35:53 -04:00
Tanguy
3a5e38ab9d
Allow custom pragma on iterators [backport] ( #20344 )
...
Allow custom pragma on iterators
2022-09-17 02:10:47 +08:00
ringabout
cd9290818a
add testcase for #19020 ( #20363 )
2022-09-15 23:18:14 +08:00
ringabout
2b80ff2374
fixes #19104 ; peg Incorrect captures [backport:1.6] ( #20352 )
...
* fixes #19104 ; peg Incorrect captures [backport:1.6]
* add tests
Co-authored-by: khchen <khchen@gmail.com >
2022-09-15 07:54:53 +02:00
metagn
79afee868d
partial revert and redesign of #19814 , changelog ( #20341 )
...
* conservative partial revert of #19814
* fix
* revert tssl
* revert azure CI change
* keep azure, revert version range
* fully revert CI, add changelog
* useOpenssl3 as separate define, .3 is a version
2022-09-14 14:14:58 -04:00
metagn
a73ae3e066
minor improvements to follow up recent PRs ( #20342 )
...
put mOpenArrayToSeq in compile-time evaluation whitelist
(it was mNone before which was whitelisted), homogenize
"ordinal type expected" errors, put overloadable enums
in non-experimental manual
2022-09-14 18:30:15 +02:00
Andrey Makarov
2140d05f34
nimgrep: add --inContext and --notinContext options ( #19528 )
...
* nimgrep: add `--matchContext` and `--noMatchContext` options
* Rename options for uniformity
* Revise option names, add `--parentPath` options
* Revert --bin deprecation
* Copy-paste an original test from quantimnot
The origin was:
96544656d5/tnimgrep.nim
* Change ! to n
* Attempt to fix test
* Fix test on Windows
* Change --contentsFile -> --inFile, add more tests
* Bump
* Change --parentPath to --dirpath
2022-09-14 18:28:01 +02:00
Bung
08faa04d78
fix #20233 Float ranges in case statement in JS crash compiler ( #20349 )
2022-09-14 17:16:34 +02:00
ringabout
2e8c016799
disable tlsEmulation for ic tests ( #20345 )
2022-09-14 12:06:05 +08:00
Antonis Geralis
7c85b500df
Add testcase for bug #20305 ( #20323 )
...
* add testcase for bug #20305
* Update tcaseobj.nim
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
2022-09-13 19:10:08 +08:00
Andreas Rumpf
6bf21e7b3d
fixes #19724 ; don't be aggressive when you infer sink parameters ( #20314 )
...
* fixes #19724 ; don't be aggressive when you infer sink parameters
* better logic and updated tests
* wip
* fixes tests (#20330 )
* restore tests
* try splitPath
Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com >
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com >
Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com >
2022-09-12 00:58:29 +02:00
Clay Sweetser
8850644cb7
Revert "fixes #20155 ; repr range with distinct types is broken with ORC" ( #20334 )
...
Revert "fixes #20155 ; repr range with distinct types is broken with ORC (#20158 )"
This reverts commit 37b3f62eef .
2022-09-11 16:56:11 -04:00
ringabout
37b3f62eef
fixes #20155 ; repr range with distinct types is broken with ORC ( #20158 )
...
* fixes #20155 ; repr range with distinct types is broken with ORC
* skipRanges
2022-09-11 16:55:22 -04:00