Daniel Belmes
ef63d47ecd
fix server caching issue causing Theme failures ( #22378 )
...
* fix server caching issue causing Theme failures
* Fix tester to ignore version cache param
* fix case of people using -d:nimTestsNimdocFixup
* rsttester needed the same fix
(cherry picked from commit 7bf7496557 )
2023-08-22 08:28:30 +02:00
ringabout
0a58af8cbf
fixes #22357 ; don't sink elements of var tuple cursors ( #22486 )
...
(cherry picked from commit 940b1607b8 )
2023-08-22 08:23:56 +02:00
Jason Beetham
8359f9683a
When in object handles procedure call again, fixes #22474 ( #22480 )
...
Ping @narimiran please backport to the 2.0 line.
(cherry picked from commit 6c4e7835bf )
2023-08-22 08:23:32 +02:00
ringabout
c3425c05e9
relax the parameter of ensureMove; allow let statements ( #22466 )
...
* relax the parameter of `ensureMove`; allow let statements
* fixes the test
(cherry picked from commit 4c89223171 )
2023-08-22 08:23:06 +02:00
Alberto Torres
3fa378533a
Fix #22366 by making nimlf_/nimln_ part of the same line (backport) ( #22508 )
2023-08-22 08:22:58 +02:00
Amjad Ben Hedhili
4850bb5a59
fix seq.capacity [backport] ( #22505 )
2023-08-22 08:22:42 +02:00
ringabout
037f536e7e
fixes #22419 ; async/closure environment does not align local variables ( #22425 )
...
* fixes #22419 ; async/closure environment does not align local variables
* Apply suggestions from code review
* Update tests/align/talign.nim
Co-authored-by: Jacek Sieka <arnetheduck@gmail.com >
* apply code review
* update tests
---------
Co-authored-by: Jacek Sieka <arnetheduck@gmail.com >
(cherry picked from commit 5334dc921f )
2023-08-11 10:49:49 +02:00
ringabout
287fbc5fb5
fixes #22387 ; Undefined behavior when with hash(...) ( #22404 )
...
* fixes #22387 ; Undefined behavior when with hash(...)
* fixes vm
* fixes nimscript
(cherry picked from commit 47d06d3d4c )
2023-08-11 10:49:30 +02:00
metagn
f553288db3
block ambiguous type conversion dotcalls in generics ( #22375 )
...
fixes #22373
(cherry picked from commit 3aaef9e4cf )
2023-08-11 10:49:11 +02:00
norrath-hero-cn
e0e386314f
fixes AddressSanitizer: global-buffer-overflow in getAppFilename on windows 10 ( #22380 )
...
fixes AddressSanitizer: global-buffer-overflow
(cherry picked from commit 73a29d72e3 )
2023-08-11 10:48:21 +02:00
Michal Maršálek
1de6a7a023
Fix the position of "Grey" in colors.nim ( #22358 )
...
Update the position of "Grey"
(cherry picked from commit da368885da )
2023-08-11 10:47:54 +02:00
narimiran
d1db4c29fa
bump NimVersion to 2.0.1
2023-08-11 10:47:05 +02:00
narimiran
a488067a41
bump NimVersion to 2.0.0
v2.0.0
2023-07-31 21:22:28 +02:00
Andreas Rumpf
35ff70f36c
Tomorrow is the release. I hope. ( #22353 )
2023-07-31 20:19:18 +02:00
ringabout
0b3ddd4e47
Revert "fixes #22246 ; generate __builtin_unreachable hints for case defaults" ( #22351 )
...
Revert "fixes #22246 ; generate `__builtin_unreachable` hints for case defaults (#22350 )"
This reverts commit b56df5c07f .
2023-07-31 22:14:15 +08:00
ringabout
b56df5c07f
fixes #22246 ; generate __builtin_unreachable hints for case defaults ( #22350 )
...
* fixes #22246 ; generate `__builtin_unreachable` hints
* use elif
* indentation
* fixes holy enums in sim
2023-07-31 16:02:52 +02:00
ringabout
569ccc50ff
fixes #22174 ; fixes destructor examples ( #22349 )
...
* fixes #22174 ; fixes destructor examples
* Update doc/destructors.md
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-07-31 15:37:24 +02:00
Bung
d51bc084fd
remove thread duplicated code ( #22348 )
2023-07-31 10:58:59 +02:00
ringabout
281016a802
add a changelog for ensureMove ( #22347 )
...
* add a changelog for `ensureMove`
* Update changelogs/changelog_2_0_0_details.md
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-07-30 20:43:52 +02:00
Juan Carlos
19d1fe7af3
Add Valgrind ( #22346 )
...
* .
* Add Valgrind for Bisect bot in GitHub Actions
2023-07-30 13:21:22 +08:00
Juan M Gómez
e70992d291
fixes an issue where byref wasnt properly handled when using it in a generic param ( #22337 )
...
* fixes an issue where byref wasnt properly handled when using it in a generic param
* removes unreachable check
2023-07-29 18:05:31 +02:00
ringabout
f0f3904ff0
implement ensureMove ( #22339 )
...
* implement `ensureMove`
* use an additional flag
* improve some logics
* progress: fixes discard ensureMove
* forbids nested expressions
* improve error messages
* checkpoint
* fixes cursor
* ADD MORE TESTS
* fixes cursorinference again
* tiny cleanup
* improve error messages
* fixes docs
* implement comments add more tests
* fixes js
2023-07-29 10:57:03 +02:00
Eric N. Vander Weele
f1ac979184
Remove declared and not used variable in packedsets.bitincl ( #22334 )
...
When compiling code that uses PackedSet with warnings enabled, `var ret`
in `bitincl` emits a "XDeclaredButNotUsed" warning.
2023-07-27 23:07:03 +02:00
konsumlamm
db77c98471
[JS] Fix bitwise ops & shifts ( #22340 )
...
* [JS] Fix bitwise ops & shifts
* Test `int64` & `uint64` only with `jsbigint64`
2023-07-27 23:06:30 +02:00
ringabout
11c8dfc9b3
fixes docs ( #22331 )
2023-07-26 10:04:34 +08:00
konsumlamm
c0994c2dbd
[JS] Fix casting to ints ( #22327 )
...
* [JS] Fix casting to ints
* Simplify `genCast` by using `asUintN`/`asIntN`
2023-07-25 17:56:14 +02:00
ringabout
1c2ccfad08
fixes #22301 ; fixes #22324 ; rejects branch initialization with a runtime discriminator with defaults ( #22303 )
...
* fixes #22301 ; rejects branch initialization with a runtime discriminator with defaults
* undefault nimPreviewRangeDefault
* fixes tests
* use oldCheckDefault
2023-07-25 12:08:32 +02:00
Khaled Hammouda
dce714b259
Fix grammar top rule ( #22325 )
...
change stmt to complexOrSimpleStmt in the top grammar rule
2023-07-24 19:48:41 +02:00
ringabout
8216d7dd46
fixes #22321 ; fixes building DLL with --noMain still produces a DllMain ( #22323 )
...
* fixes #22321 ; Building DLL with --noMain produces an unexpected DllMain on devel branch
* remove implicit nomain
2023-07-24 17:22:50 +02:00
Juan M Gómez
49a108b302
Expands codegenDecl to work in function params. fixes #22306 ( #22307 )
...
* Expands codegenDecl to work in function params. fixes #22306
* makes the test more concrete so T{lit} params dont match
* adds sfCodegenDecl
2023-07-23 16:42:20 +02:00
SirOlaf
808c9c6c2a
Testcase for #22008 ( #22320 )
...
Testcase
Co-authored-by: SirOlaf <>
2023-07-23 21:35:30 +08:00
Andreas Rumpf
be1844541c
implemented 'push quirky' switch for fine grained control over the ex… ( #22318 )
...
* implemented 'push quirky' switch for fine grained control over the exception handling overhead
* documentation
2023-07-23 13:39:58 +02:00
SirOlaf
62869a5c68
Check try block for endsInNoReturn ( #22314 )
...
Co-authored-by: SirOlaf <>
2023-07-22 21:13:55 +02:00
konsumlamm
b10d3cd98d
Update 2.0 changelog ( #22311 )
2023-07-22 21:13:23 +02:00
konsumlamm
e2ea9140ac
Document cast zeroing memory ( #22313 )
2023-07-22 21:11:49 +02:00
konsumlamm
0e555ade31
Add test for #22309 ( #22316 )
2023-07-22 21:11:08 +02:00
konsumlamm
576f4a7348
Fix doc comment rendering for concepts ( #22312 )
2023-07-22 19:10:12 +02:00
SirOlaf
3ebe24977c
Open scope for defer ( #22315 )
...
Co-authored-by: SirOlaf <>
2023-07-22 19:09:39 +02:00
ringabout
b02c1dd6ca
fixes #22297 ; return in the finally in the closure iterators ( #22300 )
...
ref #22297 ; return in the finally in the closure iterators
2023-07-22 06:37:27 +02:00
ringabout
993fcf5bda
fixes CI; disable SSL tests on osx for now ( #22304 )
...
* test CI
* disable osx
2023-07-22 11:31:01 +08:00
ringabout
91987f8eb5
fixes #22210 ; transform return future in try/finally properly ( #22249 )
...
* wip; fixes #22210 ; transform return future in try/finally properly
* add a test case for #22210
* minor
* inserts a needsCompletion flag
* uses copyNimNode
2023-07-21 05:40:11 +02:00
Ryan McConnell
2f817ee5b4
infixArgument fail in renderer.nim sometimes (#22264 )
...
* fixing minor typo
* Adding err msg
2023-07-20 19:56:54 +02:00
Jake Leahy
3f9e16594f
fix jsondoc not getting showNonExports flag ( #22267 )
...
Pass the config down so we can check if the `--showNonExports` flag is used
2023-07-20 19:56:04 +02:00
Andreas Rumpf
c1a82aa5c5
minor code improvement ( #22293 )
2023-07-19 16:03:26 +02:00
ringabout
5ed44e1ec4
fixes #22254 ; fixes #22253 ; stricteffects bugs on recursive calls ( #22294 )
2023-07-19 15:20:41 +02:00
Ryan McConnell
0d3bde95f5
Adding info to manual ( #22252 )
...
* Adjustments
* Moving example
* typo
* adding code example back and fix terms
* Condensing
2023-07-19 15:04:14 +02:00
ringabout
7d9fe106ec
fixes #22268 ; fixes move codegen ( #22288 )
2023-07-19 12:57:58 +02:00
ringabout
1aff402998
fixes #6499 ; disallow built-in procs used as procvars ( #22291 )
2023-07-19 09:45:28 +02:00
Anna
14a9929464
Fix #22281 ( #22289 )
...
Respect `--gcc.exe` and similar options when `--genScript:on` is used.
2023-07-18 16:06:21 +02:00
ringabout
f16b94a9d7
extend the skipAddr for potential types for destructors ( #22265 )
...
extend the skipAddr for potential types
2023-07-18 16:05:05 +02:00