Mamy Ratsimbazafy
461f11930e
LTO improvements - fix #15578
2023-04-17 10:00:27 +02:00
Andreas Rumpf
ea8aafa7c9
minor codegen bugfix ( #21670 )
2023-04-15 01:17:17 +02:00
ringabout
512517c223
fixes #18146 ; fixes #19372 ; disable tlsEmulation on windows; static link pthreads with mingw ( #21668 )
...
* fixes #18146 ; disable tlsEmulation on windows; static link libwinthreads DLL
* whatever
2023-04-14 22:52:35 +02:00
metagn
1a99bcd6ab
runnableExamples imports std/assertions by default ( #21658 )
...
closes https://github.com/nim-lang/RFCs/issues/499
2023-04-14 12:39:23 +02:00
metagn
2a0d8a9a06
make grammar a bit more honest ( #21655 )
...
* test if expr parsing expr
refs #19802
* in any case
* just be honest
* fix symbol/keyword issue too
2023-04-14 12:34:49 +02:00
metagn
c694d8e4fd
custom pragmas: correct error condition, remove outdated symkind whitelist ( #21653 )
...
* test not restricting custom pragma applied symbols
fixes #21652
* fix other test
* different patch
* fix tests
* actually test #18212 and other routines
2023-04-13 12:50:43 +02:00
ringabout
16f42084d3
fixes #20900 ; Calling template through from generic function across module fails to build ( #21649 )
...
* fixes #20900 ; Calling template through from generic function across module fails to build
* sanother way
2023-04-13 12:11:06 +02:00
metagn
3f51b6f73d
set module symbol type to None instead of nil for discard check ( #21657 )
...
* set module symbol type to None instead of nil
fixes #19225
* alright
2023-04-13 11:56:16 +02:00
ringabout
c33ab0ba38
stops building nimsuggest twice and nim_dbg in tests; saves 3 * 5 minutes CI time ( #21654 )
...
stop building nimsuggest twice and nim_dbg in tests; saving 3 * 5 minutes CI time
2023-04-13 11:52:24 +02:00
ringabout
1ed54b7718
fixes #21632 ; enforce deref for wasMoved in ORC ( #21647 )
...
fixes #21632 ; enforce deref for `wasMoved`
2023-04-12 10:45:45 +02:00
metagn
f05387045d
int64/uint64 as bigint in JS ( #21613 )
...
* int64/uint64 as bigint in JS
* fix CI
* convert to compile option
* fix lie
* smaller diff, changelog entry
2023-04-11 21:20:20 +02:00
metagn
be06446ffe
fix #15691 ( #21623 )
...
`semProcAux` has a check for `checkMinSonsLen(n, bodyPos + 1)`
2023-04-11 09:37:53 +02:00
metagn
1bb117cd7a
proc typeclass accounts for iterator, call conventions + nil fix + 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
2023-04-11 09:23:41 +02:00
Andrey Makarov
420b0c14eb
Fix option lists with additional indentation in Markdown ( #21633 )
...
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).
2023-04-11 06:40:20 +02:00
ringabout
4c073cffbe
disable i386 tests for now; help wanted ( #21642 )
...
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.
2023-04-11 06:39:31 +02:00
ringabout
5e016e4466
fixes #21638 ; fromJson should support empty objects ( #21641 )
...
* fixes #21638 ; `fromJson` should supports empty objects
* complete the logic
2023-04-11 06:38:30 +02:00
Etan Kissling
75205fee93
terminal size env-vars have precendence in POSIX ( #21643 )
...
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.
2023-04-11 11:43:21 +08:00
ringabout
4d683fc689
fixes booting warnings ( #21583 )
2023-04-10 09:43:12 +02:00
metagn
16bc546aea
remove useVersion ( #21626 )
...
test removing useVersion
2023-04-08 11:42:17 +02:00
Jason Beetham
686c75cef0
for loop expression can now have generated iterator's called (#21627 )
...
A for expression now can have a generated iterator, allowing for more composable iterables
2023-04-08 11:40:43 +02:00
ringabout
a37a83cbff
fixes #21617 ; createTypeBoundOps with PContext in order to instantiate generics ( #21619 )
...
* fixes #21617 ; createTypeBoundOps with PContext in order to instantiate generics
* keep idgen
2023-04-07 22:18:09 +02:00
metagn
814d3e6818
fix #19430 ( #21603 )
2023-04-06 13:36:21 +02:00
metagn
4898b054ce
warn against a, b = val in routine arguments ( #21604 )
...
closes https://github.com/nim-lang/RFCs/issues/480
2023-04-06 13:21:48 +02:00
ringabout
baa577e9e8
switch to the official regex URL ( #21616 )
...
ref https://github.com/nitely/nim-regex/pull/119
2023-04-06 15:06:06 +08:00
ringabout
c71192043b
fixes #21392 ; document nimble develop breaking changes ( #21614 )
2023-04-04 20:37:01 +02:00
ringabout
3575f2bf9c
fix #20972 fixes invalid and UB codegen case object transitions for both refc and ORC [backport] ( #21611 )
...
fix #20972 fixes invalid and UB codegen case object transitions for refc and ORC
2023-04-04 12:18:43 +02:00
chmod222
31d3606fe8
fixes #21564 ; std/bitops: Add explicit type masking for the JS target ( #21598 )
...
* 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
2023-04-03 05:22:31 +02:00
Tomohiro
6ec9c7f683
Fix example code of proc add*[T](x: var seq[T], y: sink openArray[T]) ( #21607 )
...
* Fix example code in system.nim
* Add example code to lib/system.nim
* Fix compile error
* Fix example code that can be unsafe
2023-04-03 05:15:14 +02:00
Andrey Makarov
63b4b3c5b8
Fix nim doc crash with group referencing & include ( #21600 )
...
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.
2023-04-02 10:32:36 +02:00
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