chmod222
0c6f14af04
macros: Extend treeTraverse intVal range to nnkUInt64Lit ( #21597 )
...
* Extend intVal range to nnkUInt64Lit
Fixes #21593
* Properly cast intVal as unsigned
* Add testcase for #21593
2023-04-01 20:29:28 +02:00
ringabout
a80f1a324f
fixes #21592 ; create type bound operations for calls in the method dispatcher for ORC ( #21594 )
...
* fixes #21592 ; create type operations for the method dispatcher
* add a test case
2023-04-01 17:08:45 +02:00
ringabout
1c7fd71720
fixes changelog ( #21590 )
2023-03-31 15:51:37 +08:00
Andreas Rumpf
d5719c47dc
make --exceptions:quirky work with C++ ( #21581 )
...
* make --exceptions:quirky work with C++
* make tests green again
2023-03-31 04:16:09 +02:00
Miran
2e4ba4ad93
bump NimVersion to 1.9.3 ( #21587 )
2023-03-30 20:25:14 +02:00
Yardanico
b865f6a5f0
Remove the "This module" suffix and reword some entries from the stdlib overview ( #21580 )
...
Remove a lot of "This module x" and reword some entries
2023-03-30 15:35:17 +02:00
Andreas Rumpf
72ca444122
hopefully easier to understand error message ( #21585 )
2023-03-30 15:35:00 +02:00
metagn
ecf9efa397
document general use of _, error message, fixes ( #21584 )
...
* 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
2023-03-30 15:34:42 +02:00
tersec
51ced0d684
remove seq[T] setLen undefined behavior ( #21582 )
...
remove seq[T] setLen UB
2023-03-29 12:00:00 +02:00
Jason Beetham
c06623bf8c
Fix segfault caused by ensuring valueless statics are not evaluated ( #21577 )
2023-03-29 04:50:56 +02:00
metagn
2315b01ae6
tuple unpacking for vars as just sugar, allowing nesting ( #21563 )
...
* 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
2023-03-28 17:52:23 +02:00
Zoom
4fc9f0c3a3
Docs: Mention Source Code Filters in lib/String handling ( #21570 )
...
Mention Source Code Filters in `String handling`
...as a viable solution for templating
2023-03-28 13:37:49 +02:00
Andreas Rumpf
115cec1745
fixes #20993 [backport:1.6] ( #21574 )
...
* fixes #20993 [backport:1.6]
* proper line endings for the test file
2023-03-28 13:27:17 +02:00
metagn
0630c649c6
disable google request in thttpclient ( #21572 )
...
was breaking macos CI
2023-03-28 16:34:30 +08:00
ringabout
ff5ed1dbb1
Revert "Add cursor to lists iterator variables" ( #21571 )
...
Revert "Add `cursor` to lists iterator variables (#21527 )"
This reverts commit 3936071772 .
2023-03-28 14:29:12 +08:00
heterodoxic
7d83dfd0d1
fixes #21505 (overload resolution of explicit constructors for imported C++ types) ( #21511 )
...
hacky attempt to reconcile default explicit constructors with enforcement of brace initialization, instead of memsetting imported objects to 0
2023-03-27 17:20:20 +02:00
Amjad Ben Hedhili
3936071772
Add cursor to lists iterator variables ( #21527 )
...
* followup #21507
2023-03-27 17:10:51 +02:00
ringabout
55636a2913
fixes #14255 ; Crash in compiler when using system.any by accident. ( #21562 )
...
fixes #14255 ; Crash in compiler when using system.any by accident.
2023-03-23 16:10:14 +01:00
tersec
e8a70ff179
don't access void* out of alignment in refc GC to avoid UB ( #21560 )
2023-03-22 22:05:20 +01:00
Andreas Rumpf
d84b02f0e0
atlas tool: 'update' command ( #21557 )
2023-03-21 15:24:57 +01:00
ringabout
c814c4d993
fixes #3770 ; templates with untyped parameters resolve private fields wrongly in generics ( #21554 )
...
* fixes #3770 ; templates with untyped parameters resolve private fields wrongly
* add a test case for #3770
* rename to `nfSkipFieldChecking`
2023-03-21 15:22:07 +01:00
Andreas Rumpf
f7e3af0c2d
mitigates #21272 ; but it's not the final fix because the first round … ( #21462 )
...
mitigates #21272 ; but it's not the final fix because the first round of overload resolution should already match
2023-03-20 22:53:13 +01:00
Peter Munch-Ellingsen
c155e20796
Fix infinite recursion introduced in 7031ea6 [backport 1.6] ( #21555 )
...
Fix infinite recursion introduced in 7031ea6
2023-03-20 22:43:42 +01:00
ringabout
274d61865f
closes #21536 ; fixes manual ( #21552 )
...
fixes manual
2023-03-20 22:42:57 +01:00
Federico Ceratto
9df8ca0d81
Add URI parsing warning ( #21547 )
...
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
2023-03-20 18:51:58 +01:00
Eric N. Vander Weele
da7833c68b
fixes #21538 ; expand len template parameter once in newSeqWith ( #21543 )
...
`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
2023-03-20 18:51:31 +01:00
Mark Leyva
285ea3c48e
Fix : #21541 . Add support for xnVerbatimText ( #21542 )
...
to text and text= procs. Remove unnecessary LF for xnVerbatimText
in $ proc.
2023-03-20 18:50:58 +01:00
Ivan Yonchovski
fb00b482eb
Avoid calling build_all* when nim binary is present ( #21522 )
...
- `nimble` will build `nim` using `bin/nim` and if it is already present we can
reuse it.
2023-03-20 18:49:59 +01:00
Regis Caillaud
ba22826e9b
Add check for nimMaxJeap on occupied memory + allocation size ( #21521 )
...
* fix nimMAxHeap checks
* move check to alloc pages
* remove debug trace
* Fix bad indentation
How the hell did that pass through CI ?
2023-03-20 18:49:18 +01:00
Jake Leahy
741fed716e
Use analyseIfAddressTaken logic for checking if address is taken in 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
2023-03-20 18:48:13 +01:00
Hiroki Noda
ae06c6623d
NuttX: use posix_spawn for osproc ( #21539 )
...
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
2023-03-20 18:43:10 +01:00
Hiroki Noda
0c1d595fae
NuttX: use accept4 ( #21544 )
...
NuttX supports accept4 since 48c9d10336
2023-03-20 18:41:25 +01:00
Joey
cae539996a
Update LLDB debug script + Add Custom Nim formatters ( #21517 )
...
* 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
2023-03-19 06:28:00 +01:00
Jason Beetham
a9d0124b5d
Made generic type classes work with types using static parameters ( #21528 )
2023-03-17 10:17:08 +01:00
ringabout
fd4e3ae3e4
add a prepass for codeReordering ( #21513 )
...
* add a prepass for codeReordering
* simplify
* fixes
2023-03-17 08:02:48 +01:00
ringabout
b5ee81fd23
fix #18977 ; disallow change branch of an object variant in ORC ( #21526 )
...
* 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
2023-03-16 16:06:26 +01:00
ringabout
6552a27ec1
fixes #19857 ; Exception raised in closure may be "skipped" in ORC ( #21530 )
...
fixes #19857 ; Exception raised in closure may be "skipped"
2023-03-16 21:07:54 +08:00
Hiroki Noda
c43ac90390
Add NuttX for thread stack size doc ( #21529 )
2023-03-16 18:03:43 +08:00
Amjad Ben Hedhili
26b7a74a45
Optimize cgen.addIndent ( #21508 )
...
* Optimize `cgen.addIndent`
* Avoid temporaries
2023-03-13 17:32:20 +01:00
Amjad Ben Hedhili
c52e44d845
Add cursor annotations to lists iterator variables ( #21507 )
...
Add `cursor` annotations to iterator variables
* See https://nim-lang.github.io/Nim/destructors.html#the-cursor-pragma
2023-03-13 08:43:45 +01:00
ringabout
b2c1dcbbc9
fixes explicit globals in macros ( #21502 )
2023-03-12 20:03:46 +01:00
ringabout
ffadc75afe
fixes #21496 ; Ambiguous calls compiles when module name are equal ( #21500 )
...
* fixes #21496 ; Ambiguous calls compiles when module name are equal
* add a test case
2023-03-12 20:03:14 +01:00
ringabout
af086b68f2
fixes sinkinference documentation, which has been disabled ( #21470 )
...
since https://github.com/nim-lang/Nim/pull/15105
2023-03-12 13:01:12 +08:00
Andreas Rumpf
46d2161c23
minor refactoring ( #21499 )
2023-03-10 14:20:30 +01:00
ringabout
f2dad94902
fixes #21306 ; fixes #20485 ; don't transform yields in the var section when 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
2023-03-10 14:19:31 +01:00
ringabout
0319824322
fixes #21023 ; Segfault when mixing seqs, orc, variants and futures ( #21497 )
...
* 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
2023-03-10 09:28:51 +01:00
ringabout
72e262666b
fixes quoted variables with typedesc types ( #21493 )
2023-03-09 08:09:08 +01:00
ghost
8e9fc5e639
a better message if graphviz's dot/nodejs is not found in PATH ( #21488 )
...
* 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
2023-03-08 22:34:59 +01:00
ringabout
2f89f1eb78
closes #8295 ; add a test case ( #21486 )
2023-03-07 20:17:05 +08:00
ringabout
6ef9430153
closes #6231 ; add a test case ( #21485 )
2023-03-07 17:34:02 +08:00