summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add URI parsing warning (#21547)Federico Ceratto2023-03-202-0/+4
| | | | | Related to CVE-2021-41259 https://github.com/nim-lang/security/security/advisories/GHSA-3gg2-rw3q-qwgc https://github.com/nim-lang/Nim/pull/19128#issuecomment-1181944367
* fixes #21538; expand len template parameter once in newSeqWith (#21543)Eric N. Vander Weele2023-03-202-3/+8
| | | | | | | `len` could contain side effects and may result in different values when substituted twice in the template expansion. Instead, capture the result of substituting `len` once. closes: #21538
* Fix: #21541. Add support for xnVerbatimText (#21542)Mark Leyva2023-03-202-4/+19
| | | | to text and text= procs. Remove unnecessary LF for xnVerbatimText in $ proc.
* Avoid calling build_all* when nim binary is present (#21522)Ivan Yonchovski2023-03-201-2/+4
| | | | - `nimble` will build `nim` using `bin/nim` and if it is already present we can reuse it.
* Add check for nimMaxJeap on occupied memory + allocation size (#21521)Regis Caillaud2023-03-201-11/+20
| | | | | | | | | | | * fix nimMAxHeap checks * move check to alloc pages * remove debug trace * Fix bad indentation How the hell did that pass through CI ?
* Use `analyseIfAddressTaken` logic for checking if address is taken in ↵Jake Leahy2023-03-203-11/+26
| | | | | | | | | | | | | | | | | | | converter (#21533) * Add a test case There are way more test cases (See all branches of analyseIfAddressTaken but this covers at least a second branch * Port analyseIfAddressTaken from semexprs to sigmatch This was done since we cannot import sem or semexprs (circular import) but we need the rest of the logic. In needs to be done here since the converter isn't semmed afterwards and so we can't just leave the process til later use the version from semexprs * Less hacky solution which has the checking be done in analyseIfAddressTakenInCall This was done instead of the recommendation on removing it since sfAddrTaken is used in places other than the backend * Remove weird whitespace * Still check nkHiddenAddr if we are checking a converter
* NuttX: use posix_spawn for osproc (#21539)Hiroki Noda2023-03-202-9/+11
| | | | | NuttX has standard posix_spawn interface, and can be used with it. * https://nuttx.apache.org/docs/12.0.0/reference/user/01_task_control.html#c.posix_spawn
* NuttX: use accept4 (#21544)Hiroki Noda2023-03-202-2/+2
| | | NuttX supports accept4 since https://github.com/apache/nuttx/commit/48c9d1033659603663f6e35587cf27045a130e0d
* Update LLDB debug script + Add Custom Nim formatters (#21517)Joey2023-03-192-350/+763
| | | | | | | | | * Fix custom objects, fix handling of nil variables * Rename because lldb complains about dashes in filename * Add example of how to use custom type formatting from Nim * Add synthetic objects with dynamic fields and add an example
* Made generic type classes work with types using static parameters (#21528)Jason Beetham2023-03-172-4/+53
|
* add a prepass for codeReordering (#21513)ringabout2023-03-176-7/+34
| | | | | | | * add a prepass for codeReordering * simplify * fixes
* fix #18977; disallow change branch of an object variant in ORC (#21526)ringabout2023-03-166-32/+97
| | | | | | | | | | | * fix #18977 disallow change branch of an object variant in ORC * check errors for goto exception * fixes conditions * fixes tests * add a test case for #18977
* fixes #19857; Exception raised in closure may be "skipped" in ORC (#21530)ringabout2023-03-162-0/+40
| | | fixes #19857; Exception raised in closure may be "skipped"
* Add NuttX for thread stack size doc (#21529)Hiroki Noda2023-03-161-1/+1
|
* Optimize `cgen.addIndent` (#21508)Amjad Ben Hedhili2023-03-131-2/+6
| | | | | * Optimize `cgen.addIndent` * Avoid temporaries
* Add `cursor` annotations to lists iterator variables (#21507)Amjad Ben Hedhili2023-03-131-2/+2
| | | | | Add `cursor` annotations to iterator variables * See https://nim-lang.github.io/Nim/destructors.html#the-cursor-pragma
* fixes explicit globals in macros (#21502)ringabout2023-03-122-1/+15
|
* fixes #21496; Ambiguous calls compiles when module name are equal (#21500)ringabout2023-03-124-1/+13
| | | | | * fixes #21496; Ambiguous calls compiles when module name are equal * add a test case
* fixes sinkinference documentation, which has been disabled (#21470)ringabout2023-03-121-1/+1
| | | since https://github.com/nim-lang/Nim/pull/15105
* minor refactoring (#21499)Andreas Rumpf2023-03-101-7/+1
|
* fixes #21306; fixes #20485; don't transform yields in the var section when ↵ringabout2023-03-102-1/+118
| | | | | | | | | | | introducing new local vars [backport: 1.6] (#21489) * fixes #21306; don't transform yields in the var section when introducing new local vars * adds `inVarSection` so the var section in the var section is freshed * use `isIntroducingNewLocalVars` to avoid yield transformations in var sections * fixes comments
* fixes #21023; Segfault when mixing seqs, orc, variants and futures (#21497)ringabout2023-03-103-18/+136
| | | | | | | | | * fixes #21023; Segfault when mixing seqs, orc, variants and futures * fixes none of the branches were explicitly selected * add one more test * one more test
* fixes quoted variables with typedesc types (#21493)ringabout2023-03-092-1/+9
|
* a better message if graphviz's dot/nodejs is not found in PATH (#21488)ghost2023-03-082-1/+8
| | | | | | | | | * finish issue #21474: a better message if dot is not found locally when using gendepend * fix a typo in compiler * trim empty path reported in `findNodeJs` * compiler/main.nim: switch raise to simply quit
* closes #8295; add a test case (#21486)ringabout2023-03-071-0/+13
|
* closes #6231; add a test case (#21485)ringabout2023-03-071-0/+5
|
* Remove Defect from raises list in `std/times` (#21473)Jake Leahy2023-03-061-9/+15
| | | | | | | | | * Remove Defect from raises list Since defects aren't tracked anymore this causes a hint to pop up mentioning it * Still track Defect when getting ran with an older Nim version The raises followed a pattern so moving them into a pragma didn't seem to cause any extra problems