summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* add CI for version-2-0 branch (#21084)ringabout2022-12-131-0/+1
|
* Nimsuggest now defines the backends symbol (#21083)Jake Leahy2022-12-123-2/+13
| | | | | | | * Add testcase * Define the backend symbol * Remove unneeded whitespace
* fixes #21043; fixes a named exception in the infixAs expression which ↵ringabout2022-12-123-1/+27
| | | | | | | | | | | generate an implicit uninitialized let statement (#21081) * fixes #21043; fixes a named exception in the infixAs expression which generate an implicit uninitialized let statement * Update compiler/sempass2.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* remove implicitDeref feature enum (#21075)ringabout2022-12-121-2/+1
| | | remove implicitDeref feature
* add a changelog for nimble (#21078)ringabout2022-12-121-3/+1
|
* work around chronos (#21079)ringabout2022-12-121-1/+1
| | | | | | | | | * work around chronos chronos has tests against the devel branch, it will be eventually fine. * Apply suggestions from code review * Update testament/important_packages.nim
* closes #20808 (#21077)Andreas Rumpf2022-12-121-0/+35
|
* Docs expand `using` parameters (#21076)Jake Leahy2022-12-126-10/+52
| | | | | | | | | | | | | | | * Trying to fix by changing renderer * add renderExpandUsing flag This flag makes the renderer expand parameters that use using statement to have their full type * Update docs * Make comment better explain why checking for nkSym * Fix nil access when macro/template has parameter with no type * Fix nil access when node is not semmed yet
* ship a modern nimble with lock files support (#21061)ringabout2022-12-124-5/+5
| | | | | | | | | | | | | | | | | | | | | | | * change `include genode/env` to an import ref https://github.com/nim-lang/Nim/commit/0b262e9496387d5e8adc0c5f6020b3f3300e8f79#diff-8718bd20d8f61d6638d3d64b19efc31bcd40a6d5be8215b2a1f0b75ed93e8d56 * fixes comments * ship a modern nimble with lock files support * not sure whether the latest nimble has a regression now I'm trying 0.14.0 * change `pkgs` to `pkgs2` (#21073) * overwrite problematic packages * Apply suggestions from code review * Apply suggestions from code review * Apply suggestions from code review
* fix #15836 proc arg return type auto unexpectly match proc with concr… ↵Bung2022-12-1212-12/+74
| | | | | | | | | (#21065) * fix #15836 proc arg return type auto unexpectly match proc with concrete type * fix #16244 * add test case for #12869
* alternative, much simpler algorithm for strict func checking (#21066)Andreas Rumpf2022-12-1114-78/+187
| | | | | | | | | | | | | * alternative, much simpler algorithm for strict func checking * forgot to git add new compiler module * new spec is incredibly simple to describe * fixes bigints regression * typos * closes #16305; closes #17387; closes #20863
* `multisync` now allows tuples in return type (#21074)Jake Leahy2022-12-112-2/+21
| | | | | | | * Add test case * Use .toStrLit() on param node first This means that more complex types are fully rendered
* fix #16758 Nim crashes in fixAbstractType (#20855)Bung2022-12-112-0/+41
| | | | | | | | | * fix #16758 Nim crashes in fixAbstractType * Update compiler/semexprs.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #21045; getTime with vmopsDanger is broken; alternative to #21054 (#21056)ringabout2022-12-105-22/+51
| | | | | * fix #21045 getTime with vmopsDanger is broken; alternative to #21054 * typo
* clean up the documentation of threads (#21067)ringabout2022-12-102-18/+1
| | | | | * clean up the documentation of threads * cleanup
* fixes #21062 (#21068)Andreas Rumpf2022-12-101-2/+3
|
* tiny refactoring related to sink parameter inference logic (#21064)Andreas Rumpf2022-12-102-2/+1
| | | | | * tiny refactoring related to sink parameter inference logic * Update compiler/sempass2.nim
* Use a unique name for template in async macro return (#21058)Jake Leahy2022-12-101-3/+3
| | | Use unique template name
* Revert "fix #15836 proc arg return type auto unexpectly match proc with ↵ringabout2022-12-099-23/+12
| | | | | | | concr…" (#21057) Revert "fix #15836 proc arg return type auto unexpectly match proc with concr… (#21044)" This reverts commit 0cd9bdcf9f6802421e0d8e4c28fc732012af605e.
* Implicit return working for async proc (#20933)Jake Leahy2022-12-092-2/+24
| | | | | | | | | | | | | * Implicit return working for asyncdispatch proc Closes #11558 * Test case * Test that return value is actually used * Update tests/async/t11558.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #15836 proc arg return type auto unexpectly match proc with concr… ↵Bung2022-12-099-12/+23
| | | | | (#21044) fix #15836 proc arg return type auto unexpectly match proc with concrete type
* remove duplicate assignment (#21050)ringabout2022-12-091-1/+0
| | | `newNodeIT` has already assigned `n.typ` to x.
* Remove deprecated rightSize (#21011)Juan Carlos2022-12-082-10/+2
| | | | | * Remove deprecated rightSize nop * Remove deprecated rightSize nop
* fix issue #20922 by handling missing expr in `exprList` for `tkOf` (#20930)Vindaar2022-12-083-8/+73
| | | | | | | | | | | | | | | | | | * fix issue #20922 by handling missing expr in `exprList` for `tkOf` * fix line numbers in test case * rewrite exprList requiring expr, add optionalExprList for except As suggested by @metagn. * update test case to reflect new code * update grammar.txt * update line numbers in test case taking into account nimout Given the number of errors that are produced it seems easier to do it this way instead of using `tt.Error`.
* Mention toSet in the docs of the set type (#21037)Xavier Noria2022-12-081-0/+8
|
* macros.customPragmaNode: walk brackets on brackets (#21040)Emery Hemingway2022-12-081-5/+3
|
* fixes #9839; fixes noReturn pragma doesn't work for non-simple templates ↵ringabout2022-12-082-3/+38
| | | | (#21048)
* fixes #16656; add nre to lib.md (#21042)ringabout2022-12-081-0/+4
|
* fixes `strictnotnil` documentation; comment unfinished sections (#21041)ringabout2022-12-081-6/+9
| | | fixes documentation; comment unfinished sections
* add a changelog for `std/cmdline` (#21039)ringabout2022-12-081-0/+1
| | | for a changelog for `std/cmdline`
* switch to the official URL of nimquery (#21038)ringabout2022-12-071-1/+1
| | | ref https://github.com/GULPF/nimquery/commit/3f728fb48082b4977b87103654d02f21c24cb0ba
* build the documentation of official packages (#20986)ringabout2022-12-0631-6358/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove db stuffs * remove punycode * remove * fixes script * add cloner * patches * disable * patch * fixes external packages * disable two packages * preview documentation build * try again * fixes URL * fixes a bug * simplify * fixes documentaion * fixes * Apply suggestions from code review
* Named arguments in commands + many grammar fixes (#20994)metagn2022-12-0618-147/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Breaking parser changes, implement https://github.com/nim-lang/RFCs/issues/442 Types are separated from expressions and better reflected in the grammar. * add test * more accurate grammar * fix keyword typedescs * accept expressions in proc argument lists * CI "fixes" * fixes * allow full ref expressions again, adapt old tests * cleanup, fix some tests * improve grammar, try and revert semtypes change * restrict sigil binding to identOrLiteral * fix, should have caught this immediately * add changelog entry, fix double not nil bug * correct grammar * change section * fix * real fix hopefully * fix test * support LL(1) for tuples * make grammar.txt too
* fixes #21027; cast expressions need a type (#21029)ringabout2022-12-062-0/+7
| | | | | | | * fixes #21027; cast expressions need a type * Apply suggestions from code review Thanks to @beef331
* definite assignment analysis for let (#21024)ringabout2022-12-069-30/+144
| | | | | | | | | | | | | | | | | | | * draft for let daa * patch * fixes bugs * errors for global let variable reassignments * checkpoint * out param accepts let * add more tests * add documentation * merge tests
* deprecate `do:` meaning `do ():` + misc cleanup (#20927)metagn2022-12-0613-65/+42
| | | | | | | | | | | | | | | | | * test disable do: block lambda lifting * fix last test [skip ci] * deprecate `do:` meaning `do ():` + misc cleanup closes https://github.com/nim-lang/RFCs/issues/486 * oops * fix * no idea what could be causing nimsuggest failure other than this * ensure ci works
* stdlib organization & documentation improvements (#20971)metagn2022-12-0626-53/+167
| | | | | | | | | | | | | | | | | * stdlib organization & documentation improvements * fix CI * Update doc/lib.md Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * fix ci, remove jshttpcore, export in jsfetch instead * fix alphabetical order violations * add cmdline, db_odbc Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* fix #20829 Regression in int64 type matching since (#21019)Bung2022-12-062-2/+16
| | | fix #20829 Regression in int64 type matching
* Revert "fixes #20883; Unspecified generic on default value segfaults the ↵ringabout2022-12-062-7/+2
| | | | | | | compiler" (#21028) Revert "fixes #20883; Unspecified generic on default value segfaults the compiler (#20917)" This reverts commit 10b6e4f5b4a119a8fa42f82a24ae7e4b08b2c103.
* fix #16639 (#21017)metagn2022-12-052-3/+25
|
* Dont produce initing moves for sfNoInit variables in closure env (#21026)Yuriy Glukhov2022-12-051-1/+4
|
* fixes #20954; bounchecks for len(toOpenArray()) [backport] (#20956)ringabout2022-12-052-0/+20
| | | | | * bounchecks for len(toOpenArray()) * add a testcase
* fixes `isLocalVarSym`; an implicit global is a global nonetheless (#21025)ringabout2022-12-051-2/+2
| | | fixes isLocalVarSym; an implicit global is a global nonetheless
* Add: missing nintendo-switch define (#21009)Dmitry Arkhipenko2022-12-051-0/+1
|
* ref #20846; give a deprecation message for overriding `=` hook (#21020)ringabout2022-12-052-0/+13
| | | give a deprecation message for overriding `=` hook
* Remove deprecated posix.CLONE_STOPPED (#21012)Juan Carlos2022-12-052-1/+4
| | | | | * Remove deprecated CLONE_STOPPED * Remove deprecated CLONE_STOPPED
* fixes deprecation message by update action versions (#21021)ringabout2022-12-052-4/+4
|
* fix #20996 (#21016)metagn2022-12-043-8/+27
| | | | | * fix #20996 * hopefully fix
* unpublic `arrayWith` and rename it to `nimArrayWith` (#21006)ringabout2022-12-043-6/+6
| | | | | * unpublic arrayWith * unindent
* Update prelude example (#21005)Michal Maršálek2022-12-031-1/+1
| | | comment to match what's actually being imported.