Bung
137d608d7d
add test for #3907 ( #21069 )
...
* add test for #3907
2023-08-06 15:21:24 +08:00
ringabout
b2c3b8f931
introduces online bisecting ( #22390 )
...
* introduces online bisecting
* Update .github/ISSUE_TEMPLATE/bug_report.yml
2023-08-06 08:52:17 +08:00
Daniel Belmes
7bf7496557
fix server caching issue causing Theme failures ( #22378 )
...
* fix server caching issue causing Theme failures
* Fix tester to ignore version cache param
* fix case of people using -d:nimTestsNimdocFixup
* rsttester needed the same fix
2023-08-06 02:50:47 +08:00
norrath-hero-cn
e0396900ed
Prevent early destruction of gFuns, fixes AddressSanitizer: heap-use-after-free ( #22386 )
...
Prevent destruction of gFuns before callClosures
2023-08-05 19:38:32 +02:00
Andreas Rumpf
9872453365
destructors: better docs [backport:2.0] ( #22391 )
2023-08-05 19:35:37 +02:00
konsumlamm
e15e19308e
Revert adding generic V: Ordinal parameter to succ, pred, inc, dec ( #22328 )
...
* Use `int` in `digitsutils`, `dragonbox`, `schubfach`
* Fix error message
2023-08-06 00:38:46 +08:00
Andreas Rumpf
873eaa3f65
compiler/llstream: modern code for llstream ( #22385 )
2023-08-04 22:52:31 +02:00
Tomohiro
db435a4a79
Fix searchExtPos so that it returns -1 when the path is not a file ext ( #22245 )
...
* Fix searchExtPos so that it returns -1 when the path is not a file ext
* fix comparision expression
* Remove splitDrive from searchExtPos
2023-08-04 20:00:43 +02:00
norrath-hero-cn
73a29d72e3
fixes AddressSanitizer: global-buffer-overflow in getAppFilename on windows 10 ( #22380 )
...
fixes AddressSanitizer: global-buffer-overflow
2023-08-04 19:59:05 +02:00
Bung
26f183043f
fix #20883 Unspecified generic on default value segfaults the compiler ( #21172 )
...
* fix #20883 Unspecified generic on default value segfaults the compiler
* fallback to isGeneric
* change to closer error
* Update t20883.nim
2023-08-04 13:35:43 +02:00
Jake Leahy
3efabd3ec6
Fix crash when using uninstantiated generic ( #22379 )
...
* Add test case
* Add in a bounds check when accessing generic types
Removes idnex out of bounds exception when comparing a generic that isn't fully instantiated
2023-08-04 12:21:36 +02:00
ringabout
7c2a2c8dc8
fixes a typo in the manual ( #22383 )
...
ref 0d3bde95f5 (commitcomment-122093273)
2023-08-04 18:00:00 +08:00
ringabout
fb7acd6600
follow up #22322 ; fixes changelog ( #22381 )
2023-08-04 09:08:41 +02:00
konsumlamm
d37b620757
Make repr(HSlice) always available ( #22332 )
...
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com >
2023-08-04 05:29:48 +02:00
awr1
14bc3f3268
Allow libffi to work via koch boot ( #22322 )
...
* Divert libffi from nimble path, impl into koch
* Typo in koch
* Update options.nim comment
* Fix CI Test
* Update changelog
* Clarify libffi nimble comment
* Future pending changelog
---------
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com >
2023-08-03 23:06:30 +02:00
SirOlaf
8d8d75706c
Add experimental inferGenericTypes switch ( #22317 )
...
* Infer generic bindings
* Simple test
* Add t
* Allow it to work for templates too
* Fix some builds by putting bindings in a template
* Fix builtins
* Slightly more exotic seq test
* Test value-based generics using array
* Pass expectedType into buildBindings
* Put buildBindings into a proc
* Manual entry
* Remove leftover `
* Improve language used in the manual
* Experimental flag and fix basic constructors
* Tiny commend cleanup
* Move to experimental manual
* Use 'kind' so tuples continue to fail like before
* Explicitly disallow tuples
* Table test and document tuples
* Test type reduction
* Disable inferGenericTypes check for CI tests
* Remove tuple info in manual
* Always reduce types. Testing CI
* Fixes
* Ignore tyGenericInst
* Prevent binding already bound generic params
* tyUncheckedArray
* Few more types
* Update manual and check for flag again
* Update tests/generics/treturn_inference.nim
* var candidate, remove flag check again for CI
* Enable check once more
---------
Co-authored-by: SirOlaf <>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-08-03 22:49:52 +02:00
Bung
6b913b4741
Revert "fix #22173 sink paramers not moved into closure (refc) (#22… ( #22376 )
...
Revert "fix #22173 `sink` paramers not moved into closure (refc) (#22359 )"
This reverts commit b40da812f7 .
2023-08-03 19:56:05 +02:00
Bung
b40da812f7
fix #22173 sink paramers not moved into closure (refc) ( #22359 )
...
* use genRefAssign when assign to sink string
* add test case
2023-08-02 14:08:51 +02:00
ringabout
825a0e7df4
fixes #22362 ; Compiler crashes with staticBoundsCheck on ( #22363 )
2023-08-02 11:00:34 +02:00
ringabout
f3a7622514
fixes #22360 ; compare with the half of randMax ( #22361 )
...
* fixes #22360 ; compare with the half of randMax
* add a test
2023-08-02 10:58:29 +02:00
Michal Maršálek
da368885da
Fix the position of "Grey" in colors.nim ( #22358 )
...
Update the position of "Grey"
2023-08-01 20:56:38 +02:00
ringabout
1d2c27d2e6
bump the devel version to 211 ( #22356 )
2023-08-01 16:48:52 +02:00
ringabout
a23e53b490
fixes #22262 ; fixes -d:useMalloc broken with --mm:none and --threads on ( #22355 )
...
* fixes #22262 ; -d:useMalloc broken with --mm:none and threads on
* fixes
2023-08-01 15:18:08 +02:00
Andreas Rumpf
35ff70f36c
Tomorrow is the release. I hope. ( #22353 )
2023-07-31 20:19:18 +02:00
ringabout
0b3ddd4e47
Revert "fixes #22246 ; generate __builtin_unreachable hints for case defaults" ( #22351 )
...
Revert "fixes #22246 ; generate `__builtin_unreachable` hints for case defaults (#22350 )"
This reverts commit b56df5c07f .
2023-07-31 22:14:15 +08:00
ringabout
b56df5c07f
fixes #22246 ; generate __builtin_unreachable hints for case defaults ( #22350 )
...
* fixes #22246 ; generate `__builtin_unreachable` hints
* use elif
* indentation
* fixes holy enums in sim
2023-07-31 16:02:52 +02:00
ringabout
569ccc50ff
fixes #22174 ; fixes destructor examples ( #22349 )
...
* fixes #22174 ; fixes destructor examples
* Update doc/destructors.md
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-07-31 15:37:24 +02:00
Bung
d51bc084fd
remove thread duplicated code ( #22348 )
2023-07-31 10:58:59 +02:00
ringabout
281016a802
add a changelog for ensureMove ( #22347 )
...
* add a changelog for `ensureMove`
* Update changelogs/changelog_2_0_0_details.md
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-07-30 20:43:52 +02:00
Juan Carlos
19d1fe7af3
Add Valgrind ( #22346 )
...
* .
* Add Valgrind for Bisect bot in GitHub Actions
2023-07-30 13:21:22 +08:00
Juan M Gómez
e70992d291
fixes an issue where byref wasnt properly handled when using it in a generic param ( #22337 )
...
* fixes an issue where byref wasnt properly handled when using it in a generic param
* removes unreachable check
2023-07-29 18:05:31 +02:00
ringabout
f0f3904ff0
implement ensureMove ( #22339 )
...
* implement `ensureMove`
* use an additional flag
* improve some logics
* progress: fixes discard ensureMove
* forbids nested expressions
* improve error messages
* checkpoint
* fixes cursor
* ADD MORE TESTS
* fixes cursorinference again
* tiny cleanup
* improve error messages
* fixes docs
* implement comments add more tests
* fixes js
2023-07-29 10:57:03 +02:00
Eric N. Vander Weele
f1ac979184
Remove declared and not used variable in packedsets.bitincl ( #22334 )
...
When compiling code that uses PackedSet with warnings enabled, `var ret`
in `bitincl` emits a "XDeclaredButNotUsed" warning.
2023-07-27 23:07:03 +02:00
konsumlamm
db77c98471
[JS] Fix bitwise ops & shifts ( #22340 )
...
* [JS] Fix bitwise ops & shifts
* Test `int64` & `uint64` only with `jsbigint64`
2023-07-27 23:06:30 +02:00
ringabout
11c8dfc9b3
fixes docs ( #22331 )
2023-07-26 10:04:34 +08:00
konsumlamm
c0994c2dbd
[JS] Fix casting to ints ( #22327 )
...
* [JS] Fix casting to ints
* Simplify `genCast` by using `asUintN`/`asIntN`
2023-07-25 17:56:14 +02:00
ringabout
1c2ccfad08
fixes #22301 ; fixes #22324 ; rejects branch initialization with a runtime discriminator with defaults ( #22303 )
...
* fixes #22301 ; rejects branch initialization with a runtime discriminator with defaults
* undefault nimPreviewRangeDefault
* fixes tests
* use oldCheckDefault
2023-07-25 12:08:32 +02:00
Khaled Hammouda
dce714b259
Fix grammar top rule ( #22325 )
...
change stmt to complexOrSimpleStmt in the top grammar rule
2023-07-24 19:48:41 +02:00
ringabout
8216d7dd46
fixes #22321 ; fixes building DLL with --noMain still produces a DllMain ( #22323 )
...
* fixes #22321 ; Building DLL with --noMain produces an unexpected DllMain on devel branch
* remove implicit nomain
2023-07-24 17:22:50 +02:00
Juan M Gómez
49a108b302
Expands codegenDecl to work in function params. fixes #22306 ( #22307 )
...
* Expands codegenDecl to work in function params. fixes #22306
* makes the test more concrete so T{lit} params dont match
* adds sfCodegenDecl
2023-07-23 16:42:20 +02:00
SirOlaf
808c9c6c2a
Testcase for #22008 ( #22320 )
...
Testcase
Co-authored-by: SirOlaf <>
2023-07-23 21:35:30 +08:00
Andreas Rumpf
be1844541c
implemented 'push quirky' switch for fine grained control over the ex… ( #22318 )
...
* implemented 'push quirky' switch for fine grained control over the exception handling overhead
* documentation
2023-07-23 13:39:58 +02:00
SirOlaf
62869a5c68
Check try block for endsInNoReturn ( #22314 )
...
Co-authored-by: SirOlaf <>
2023-07-22 21:13:55 +02:00
konsumlamm
b10d3cd98d
Update 2.0 changelog ( #22311 )
2023-07-22 21:13:23 +02:00
konsumlamm
e2ea9140ac
Document cast zeroing memory ( #22313 )
2023-07-22 21:11:49 +02:00
konsumlamm
0e555ade31
Add test for #22309 ( #22316 )
2023-07-22 21:11:08 +02:00
konsumlamm
576f4a7348
Fix doc comment rendering for concepts ( #22312 )
2023-07-22 19:10:12 +02:00
SirOlaf
3ebe24977c
Open scope for defer ( #22315 )
...
Co-authored-by: SirOlaf <>
2023-07-22 19:09:39 +02:00
ringabout
b02c1dd6ca
fixes #22297 ; return in the finally in the closure iterators ( #22300 )
...
ref #22297 ; return in the finally in the closure iterators
2023-07-22 06:37:27 +02:00
ringabout
993fcf5bda
fixes CI; disable SSL tests on osx for now ( #22304 )
...
* test CI
* disable osx
2023-07-22 11:31:01 +08:00