summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
* fix server caching issue causing Theme failures (#22378)Daniel Belmes2023-08-064-8/+12
| | | | | | | | | * 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
* Prevent early destruction of gFuns, fixes AddressSanitizer: ↵norrath-hero-cn2023-08-051-1/+1
| | | | | heap-use-after-free (#22386) Prevent destruction of gFuns before callClosures
* destructors: better docs [backport:2.0] (#22391)Andreas Rumpf2023-08-051-28/+57
|
* Revert adding generic `V: Ordinal` parameter to `succ`, `pred`, `inc`, `dec` ↵konsumlamm2023-08-065-17/+17
| | | | | | | (#22328) * Use `int` in `digitsutils`, `dragonbox`, `schubfach` * Fix error message
* compiler/llstream: modern code for llstream (#22385)Andreas Rumpf2023-08-041-17/+6
|
* Fix searchExtPos so that it returns -1 when the path is not a file ext (#22245)Tomohiro2023-08-042-4/+49
| | | | | | | * Fix searchExtPos so that it returns -1 when the path is not a file ext * fix comparision expression * Remove splitDrive from searchExtPos
* fixes AddressSanitizer: global-buffer-overflow in getAppFilename on windows ↵norrath-hero-cn2023-08-041-2/+2
| | | | | 10 (#22380) fixes AddressSanitizer: global-buffer-overflow
* fix #20883 Unspecified generic on default value segfaults the compiler (#21172)Bung2023-08-043-0/+20
| | | | | | | | | * fix #20883 Unspecified generic on default value segfaults the compiler * fallback to isGeneric * change to closer error * Update t20883.nim
* Fix crash when using uninstantiated generic (#22379)Jake Leahy2023-08-042-0/+18
| | | | | | | * Add test case * Add in a bounds check when accessing generic types Removes idnex out of bounds exception when comparing a generic that isn't fully instantiated
* fixes a typo in the manual (#22383)ringabout2023-08-041-1/+1
| | | ref https://github.com/nim-lang/Nim/commit/0d3bde95f578576d2e84d422d5694ee0e0055cbc#commitcomment-122093273
* follow up #22322; fixes changelog (#22381)ringabout2023-08-042-4/+2
|
* Make `repr(HSlice)` always available (#22332)konsumlamm2023-08-043-12/+14
| | | Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* Allow `libffi` to work via `koch boot` (#22322)awr12023-08-034-15/+45
| | | | | | | | | | | | | | | | | | | * Divert libffi from nimble path, impl into koch * Typo in koch * Update options.nim comment * Fix CI Test * Update changelog * Clarify libffi nimble comment * Future pending changelog --------- Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* Add experimental inferGenericTypes switch (#22317)SirOlaf2023-08-036-11/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Infer generic bindings * Simple test * Add t * Allow it to work for templates too * Fix some builds by putting bindings in a template * Fix builtins * Slightly more exotic seq test * Test value-based generics using array * Pass expectedType into buildBindings * Put buildBindings into a proc * Manual entry * Remove leftover ` * Improve language used in the manual * Experimental flag and fix basic constructors * Tiny commend cleanup * Move to experimental manual * Use 'kind' so tuples continue to fail like before * Explicitly disallow tuples * Table test and document tuples * Test type reduction * Disable inferGenericTypes check for CI tests * Remove tuple info in manual * Always reduce types. Testing CI * Fixes * Ignore tyGenericInst * Prevent binding already bound generic params * tyUncheckedArray * Few more types * Update manual and check for flag again * Update tests/generics/treturn_inference.nim * var candidate, remove flag check again for CI * Enable check once more --------- Co-authored-by: SirOlaf <> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Revert "fix #22173 `sink` paramers not moved into closure (refc) (#22… ↵Bung2023-08-032-29/+6
| | | | | | | (#22376) Revert "fix #22173 `sink` paramers not moved into closure (refc) (#22359)" This reverts commit b40da812f7aa590ed16df54a492684c228320549.
* fix #22173 `sink` paramers not moved into closure (refc) (#22359)Bung2023-08-022-6/+29
| | | | | * use genRefAssign when assign to sink string * add test case
* fixes #22362; Compiler crashes with staticBoundsCheck on (#22363)ringabout2023-08-023-0/+19
|
* fixes #22360; compare with the half of randMax (#22361)ringabout2023-08-022-4/+19
| | | | | * fixes #22360; compare with the half of randMax * add a test
* Fix the position of "Grey" in colors.nim (#22358)Michal Maršálek2023-08-011-2/+2
| | | Update the position of "Grey"
* bump the devel version to 211 (#22356)ringabout2023-08-011-3/+3
|
* fixes #22262; fixes `-d:useMalloc` broken with `--mm:none` and `--threads ↵ringabout2023-08-012-2/+3
| | | | | | | on` (#22355) * fixes #22262; -d:useMalloc broken with --mm:none and threads on * fixes
* Tomorrow is the release. I hope. (#22353)Andreas Rumpf2023-07-312-2/+2
|
* Revert "fixes #22246; generate `__builtin_unreachable` hints for case ↵ringabout2023-07-313-9/+5
| | | | | | | defaults" (#22351) Revert "fixes #22246; generate `__builtin_unreachable` hints for case defaults (#22350)" This reverts commit b56df5c07f7dc9ac9d718ca47c10b0683a9b916f.
* fixes #22246; generate `__builtin_unreachable` hints for case defaults (#22350)ringabout2023-07-313-5/+9
| | | | | | | | | * fixes #22246; generate `__builtin_unreachable` hints * use elif * indentation * fixes holy enums in sim
* fixes #22174; fixes destructor examples (#22349)ringabout2023-07-311-6/+6
| | | | | | | | | | | * 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>
* remove thread duplicated code (#22348)Bung2023-07-311-5/+0
|
* add a changelog for `ensureMove` (#22347)ringabout2023-07-301-0/+1
| | | | | | | | | * add a changelog for `ensureMove` * Update changelogs/changelog_2_0_0_details.md --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Add Valgrind (#22346)Juan Carlos2023-07-301-0/+3
| | | | | * . * Add Valgrind for Bisect bot in GitHub Actions
* fixes an issue where byref wasnt properly handled when using it in a generic ↵Juan M Gómez2023-07-292-3/+37
| | | | | | | param (#22337) * fixes an issue where byref wasnt properly handled when using it in a generic param * removes unreachable check
* implement `ensureMove` (#22339)ringabout2023-07-2914-4/+255
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Remove declared and not used variable in packedsets.bitincl (#22334)Eric N. Vander Weele2023-07-271-1/+0
| | | | When compiling code that uses PackedSet with warnings enabled, `var ret` in `bitincl` emits a "XDeclaredButNotUsed" warning.
* [JS] Fix bitwise ops & shifts (#22340)konsumlamm2023-07-272-31/+101
| | | | | * [JS] Fix bitwise ops & shifts * Test `int64` & `uint64` only with `jsbigint64`
* fixes docs (#22331)ringabout2023-07-261-1/+1
|
* [JS] Fix casting to ints (#22327)konsumlamm2023-07-252-19/+28
| | | | | * [JS] Fix casting to ints * Simplify `genCast` by using `asUintN`/`asIntN`
* fixes #22301; fixes #22324; rejects branch initialization with a runtime ↵ringabout2023-07-256-21/+64
| | | | | | | | | | | discriminator with defaults (#22303) * fixes #22301; rejects branch initialization with a runtime discriminator with defaults * undefault nimPreviewRangeDefault * fixes tests * use oldCheckDefault
* Fix grammar top rule (#22325)Khaled Hammouda2023-07-242-2/+2
| | | change stmt to complexOrSimpleStmt in the top grammar rule
* fixes #22321; fixes building DLL with --noMain still produces a DllMain (#22323)ringabout2023-07-242-2/+1
| | | | | * fixes #22321; Building DLL with --noMain produces an unexpected DllMain on devel branch * remove implicit nomain
* Expands codegenDecl to work in function params. fixes #22306 (#22307)Juan M Gómez2023-07-237-18/+47
| | | | | | | * Expands codegenDecl to work in function params. fixes #22306 * makes the test more concrete so T{lit} params dont match * adds sfCodegenDecl
* Testcase for #22008 (#22320)SirOlaf2023-07-231-0/+8
| | | | | Testcase Co-authored-by: SirOlaf <>
* implemented 'push quirky' switch for fine grained control over the ex… ↵Andreas Rumpf2023-07-2310-31/+102
| | | | | | | (#22318) * implemented 'push quirky' switch for fine grained control over the exception handling overhead * documentation
* Check try block for endsInNoReturn (#22314)SirOlaf2023-07-221-2/+3
| | | Co-authored-by: SirOlaf <>
* Update 2.0 changelog (#22311)konsumlamm2023-07-222-100/+110
|
* Document `cast` zeroing memory (#22313)konsumlamm2023-07-221-14/+17
|
* Add test for #22309 (#22316)konsumlamm2023-07-221-0/+11
|
* Fix doc comment rendering for concepts (#22312)konsumlamm2023-07-222-2/+2
|
* Open scope for defer (#22315)SirOlaf2023-07-221-0/+2
| | | Co-authored-by: SirOlaf <>
* fixes #22297; return in the finally in the closure iterators (#22300)ringabout2023-07-222-1/+14
| | | ref #22297; return in the finally in the closure iterators
* fixes CI; disable SSL tests on osx for now (#22304)ringabout2023-07-222-0/+2
| | | | | * test CI * disable osx
* fixes #22210; transform return future in try/finally properly (#22249)ringabout2023-07-213-9/+162
| | | | | | | | | | | * wip; fixes #22210; transform return future in try/finally properly * add a test case for #22210 * minor * inserts a needsCompletion flag * uses copyNimNode
* `infixArgument` fail in `renderer.nim` sometimes (#22264)Ryan McConnell2023-07-201-1/+5
| | | | | * fixing minor typo * Adding err msg