summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* runnableExamples imports std/assertions by default (#21658)metagn2023-04-142-1/+7
| | | closes https://github.com/nim-lang/RFCs/issues/499
* make grammar a bit more honest (#21655)metagn2023-04-142-18/+20
| | | | | | | | | | | * test if expr parsing expr refs #19802 * in any case * just be honest * fix symbol/keyword issue too
* custom pragmas: correct error condition, remove outdated symkind whitelist ↵metagn2023-04-135-16/+73
| | | | | | | | | | | | | | | (#21653) * test not restricting custom pragma applied symbols fixes #21652 * fix other test * different patch * fix tests * actually test #18212 and other routines
* fixes #20900; Calling template through from generic function across module ↵ringabout2023-04-133-2/+12
| | | | | | | fails to build (#21649) * fixes #20900; Calling template through from generic function across module fails to build * sanother way
* set module symbol type to None instead of nil for discard check (#21657)metagn2023-04-134-13/+38
| | | | | | | * set module symbol type to None instead of nil fixes #19225 * alright
* stops building nimsuggest twice and nim_dbg in tests; saves 3 * 5 minutes CI ↵ringabout2023-04-131-1/+9
| | | | | time (#21654) stop building nimsuggest twice and nim_dbg in tests; saving 3 * 5 minutes CI time
* fixes #21632; enforce deref for `wasMoved` in ORC (#21647)ringabout2023-04-123-6/+15
| | | fixes #21632; enforce deref for `wasMoved`
* int64/uint64 as bigint in JS (#21613)metagn2023-04-1126-111/+329
| | | | | | | | | | | * int64/uint64 as bigint in JS * fix CI * convert to compile option * fix lie * smaller diff, changelog entry
* fix #15691 (#21623)metagn2023-04-112-2/+22
| | | `semProcAux` has a check for `checkMinSonsLen(n, bodyPos + 1)`
* `proc` typeclass accounts for `iterator`, call conventions + `nil` fix + ↵metagn2023-04-1112-57/+222
| | | | | | | | | | | | | document typeclass AST (#21629) * test fix #16546 #16548 + another issue * please don't tell me other packages do this * fix CI + test typeclass callconv pragma * better logic in parser * docs and changelog
* Fix option lists with additional indentation in Markdown (#21633)Andrey Makarov2023-04-112-1/+29
| | | | | | | | This is more Markdown-ish way to fix issue #21055, then PR #21625. It does not enable RST definition lists, instead it makes adding additional indentation (less than 4) right after a paragraph be ignored, as it's done for all block elements in Markdown. (In this case this tenet is applied to option lists that are not part of CommonMark spec by themselves).
* disable i386 tests for now; help wanted (#21642)ringabout2023-04-111-5/+5
| | | I have done some investigations but still cannot figure it out in https://github.com/nim-lang/Nim/pull/21637, https://github.com/nim-lang/Nim/pull/21612 and https://forum.nim-lang.org/t/10069. If someone has a clue, please enlighten me.
* fixes #21638; `fromJson` should support empty objects (#21641)ringabout2023-04-112-11/+21
| | | | | * fixes #21638; `fromJson` should supports empty objects * complete the logic
* terminal size env-vars have precendence in POSIX (#21643)Etan Kissling2023-04-111-10/+39
| | | | | | | In POSIX Base Definitions Section 8.1 Environment Variable Definition, it is explained that the `COLUMNS` and `LINES` environment variables, if present, take precedence over any other implementation-defined method to determine the terminal size. This is useful, for example, to capture output programmatically in simulations for various terminal sizes.
* fixes booting warnings (#21583)ringabout2023-04-104-6/+3
|
* remove useVersion (#21626)metagn2023-04-089-37/+9
| | | test removing useVersion
* `for` loop expression can now have generated `iterator`'s called (#21627)Jason Beetham2023-04-082-1/+56
| | | A for expression now can have a generated iterator, allowing for more composable iterables
* fixes #21617; createTypeBoundOps with PContext in order to instantiate ↵ringabout2023-04-075-12/+26
| | | | | | | generics (#21619) * fixes #21617; createTypeBoundOps with PContext in order to instantiate generics * keep idgen
* fix #19430 (#21603)metagn2023-04-062-2/+6
|
* warn against `a, b = val` in routine arguments (#21604)metagn2023-04-064-19/+18
| | | closes https://github.com/nim-lang/RFCs/issues/480
* switch to the official regex URL (#21616)ringabout2023-04-061-1/+1
| | | ref https://github.com/nitely/nim-regex/pull/119
* fixes #21392; document `nimble develop` breaking changes (#21614)ringabout2023-04-041-1/+1
|
* fix #20972 fixes invalid and UB codegen case object transitions for both ↵ringabout2023-04-042-3/+20
| | | | | refc and ORC [backport] (#21611) fix #20972 fixes invalid and UB codegen case object transitions for refc and ORC
* fixes #21564; std/bitops: Add explicit type masking for the JS target (#21598)chmod2222023-04-032-3/+37
| | | | | | | | | | | | | | | | | | | * std/bitops: Add explicit type masking for the JS target Typecasts on the JavaScript backend do not function the same way as they do on C and C++ backends, so for bitwise operations we may need to mask them back down into their allowed range when they get shifted outside it. Since they do work as expected on the other backends, a default bitmask of all 1's is casted down into the target type as an easily optimizable "& 0xFF" operation for these backends. * Fixup: this should still be a func * Run test case on js target * Adapt testcase to contributor guide and best practices * Simplify constrain logic and turn into actual no-op for the C side
* Fix example code of proc add*[T](x: var seq[T], y: sink openArray[T]) (#21607)Tomohiro2023-04-031-4/+13
| | | | | | | | | * Fix example code in system.nim * Add example code to lib/system.nim * Fix compile error * Fix example code that can be unsafe
* Fix nim doc crash with group referencing & include (#21600)Andrey Makarov2023-04-026-14/+40
| | | | | | | This fixes a regression introduced in #20990 . When a group referencing is used and one of the overloaded symbols is in `include`d file, then `nim doc` crashes. The fix is in distinguishing (the index of) module and file where the symbol is defined, and using only module as the key in hash table for group referencing.
* macros: Extend treeTraverse intVal range to nnkUInt64Lit (#21597)chmod2222023-04-012-0/+15
| | | | | | | | | * Extend intVal range to nnkUInt64Lit Fixes #21593 * Properly cast intVal as unsigned * Add testcase for #21593
* fixes #21592; create type bound operations for calls in the method ↵ringabout2023-04-014-6/+21
| | | | | | | dispatcher for ORC (#21594) * fixes #21592; create type operations for the method dispatcher * add a test case
* fixes changelog (#21590)ringabout2023-03-312-1/+1
|
* make --exceptions:quirky work with C++ (#21581)Andreas Rumpf2023-03-313-5/+7
| | | | | * make --exceptions:quirky work with C++ * make tests green again
* bump NimVersion to 1.9.3 (#21587)Miran2023-03-301-1/+1
|
* Remove the "This module" suffix and reword some entries from the stdlib ↵Yardanico2023-03-301-107/+97
| | | | | overview (#21580) Remove a lot of "This module x" and reword some entries
* hopefully easier to understand error message (#21585)Andreas Rumpf2023-03-302-4/+4
|
* document general use of `_`, error message, fixes (#21584)metagn2023-03-3011-31/+100
| | | | | | | | | | | | * document general use of `_`, error message, fixes fixes #20687, fixes #21435 Documentation and changelog updated to clarify new universal behavior of `_`. Also new error message for attempting to use `_`, new tests, and fixes with overloadable symbols and implicit generics. * add test for #21435
* remove `seq[T]` `setLen` undefined behavior (#21582)tersec2023-03-291-1/+1
| | | remove seq[T] setLen UB
* Fix segfault caused by ensuring valueless statics are not evaluated (#21577)Jason Beetham2023-03-292-1/+21
|
* tuple unpacking for vars as just sugar, allowing nesting (#21563)metagn2023-03-2813-97/+269
| | | | | | | | | | | | | | | | | | | * tuple unpacking for vars as just sugar, allowing nesting * set temp symbol AST * hopeful fix some issues, add test for #19364 * always use temp for consts * document, fix small issue * fix manual indentation * actually fix manual * use helper proc * don't resem temp tuple assignment
* Docs: Mention Source Code Filters in `lib/String handling` (#21570)Zoom2023-03-281-1/+3
| | | | | Mention Source Code Filters in `String handling` ...as a viable solution for templating
* fixes #20993 [backport:1.6] (#21574)Andreas Rumpf2023-03-282-16/+74
| | | | | * fixes #20993 [backport:1.6] * proper line endings for the test file
* disable google request in thttpclient (#21572)metagn2023-03-281-4/+6
| | | was breaking macos CI
* Revert "Add `cursor` to lists iterator variables" (#21571)ringabout2023-03-281-3/+3
| | | | | Revert "Add `cursor` to lists iterator variables (#21527)" This reverts commit 3936071772d648f98c36e5aad16a341b86344e6c.
* fixes #21505 (overload resolution of explicit constructors for imported C++ ↵heterodoxic2023-03-273-5/+63
| | | | | types) (#21511) hacky attempt to reconcile default explicit constructors with enforcement of brace initialization, instead of memsetting imported objects to 0
* Add `cursor` to lists iterator variables (#21527)Amjad Ben Hedhili2023-03-271-3/+3
| | | * followup #21507
* fixes #14255; Crash in compiler when using `system.any` by accident. (#21562)ringabout2023-03-232-2/+5
| | | fixes #14255; Crash in compiler when using system.any by accident.
* don't access void* out of alignment in refc GC to avoid UB (#21560)tersec2023-03-221-1/+0
|
* atlas tool: 'update' command (#21557)Andreas Rumpf2023-03-212-3/+36
|
* fixes #3770; templates with untyped parameters resolve private fields ↵ringabout2023-03-218-11/+48
| | | | | | | | | wrongly in generics (#21554) * fixes #3770; templates with untyped parameters resolve private fields wrongly * add a test case for #3770 * rename to `nfSkipFieldChecking`
* mitigates #21272; but it's not the final fix because the first round … ↵Andreas Rumpf2023-03-201-2/+2
| | | | | (#21462) mitigates #21272; but it's not the final fix because the first round of overload resolution should already match
* Fix infinite recursion introduced in 7031ea6 [backport 1.6] (#21555)Peter Munch-Ellingsen2023-03-201-1/+1
| | | Fix infinite recursion introduced in 7031ea6
* closes #21536; fixes manual (#21552)ringabout2023-03-201-2/+2
| | | fixes manual