flywind
23b0b10886
fix #14157 ( #15877 )
...
* fix #14157
* Update compiler/jsgen.nim
* add changelog
* Update compiler/jsgen.nim
* Update tests/js/tmodify_cstring.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
(cherry picked from commit 1f9bf43100 )
2020-11-16 06:56:43 +01:00
Bung
04254fe9d6
fix #12726 Cannot take the compile-time sizeof Atomic types ( #15928 )
...
* fix #12726 Cannot take the compile-time sizeof Atomic types
* fix for arch 32
(cherry picked from commit 826e62953f )
2020-11-16 06:56:33 +01:00
Bung
272bc81f51
Fix 14127 js from int to int casting ( #15918 )
...
* fix #14127 from int to int casting
* add test for #14127
* use template for test, also test uint2int
* move to tests/types/t14127_cast_number.nim targets:c cpp js
(cherry picked from commit a81434a890 )
2020-11-16 06:56:24 +01:00
narimiran
d10f841b60
nimdoc: items of ordered lists now have numbers instead of circles
...
(cherry picked from commit f02c7542fc )
2020-11-16 06:55:32 +01:00
narimiran
1781848122
remove codeowners [ci skip]
...
(cherry picked from commit b831033db6 )
2020-11-16 06:55:25 +01:00
ee7
916c4bb484
Docs(strutils): Fix broken links ( #15912 )
...
The `dedent` and `unindent` links were introduced by commit d67c5cb751
(#15264 ).
(cherry picked from commit 42c434fa3d )
2020-11-16 06:55:00 +01:00
flywind
2e6cfe3a0d
close #4318(add testcase for #4318 ) ( #15904 )
...
* close #4318(add testcase for #4318 )
* Update tests/objects/t4318.nim
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
(cherry picked from commit 35f8803250 )
2020-11-16 06:54:53 +01:00
Miran
04f810c2ec
Correct all eggs ( #15906 )
...
* "eg" is a misspelled "egg", "e.g." is "exempli gratia"
* Also, "ie" is "i.e.".
(cherry picked from commit bbe49a14ae )
2020-11-16 06:54:45 +01:00
narimiran
192cb9ff90
fix norm package testing command
...
(cherry picked from commit c44ae647a9 )
2020-11-16 06:54:34 +01:00
flywind
127d63b343
fix #12471 ( #15901 )
...
* fix #12471
* add testcase
* fix
* test nimdoc is tricky
* Delete t12471.nim
(cherry picked from commit b38f0403fd )
2020-11-16 06:54:25 +01:00
flywind
a27ed88688
follow #15874(add testcase for #15874 ) ( #15893 )
...
(cherry picked from commit d8e7caf5dd )
2020-11-16 06:54:10 +01:00
cooldome
7724cd534f
fix #15825 ( #15894 )
...
* fix #15825
* better fix
(cherry picked from commit 338602a402 )
2020-11-16 06:53:59 +01:00
Clyybber
4e89dffc15
Add testcase for #14601 ( #15677 )
...
(cherry picked from commit 7435d912ad )
2020-11-16 06:53:52 +01:00
narimiran
19a11bc8a6
fix the incorrect merge conflict of an earlier backport
2020-11-10 12:31:06 +01:00
Aethylia
244f3f62ce
Added [:T] syntax explanation to generics tutorial. ( #15890 )
...
* Added [:T] syntax explanation to generics tutorial.
* Update doc/tut2.rst
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
* Update doc/tut2.rst
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
* Made second generics example runnable and added test line.
* Update doc/tut2.rst
* Update doc/tut2.rst
* Update doc/tut2.rst
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
(cherry picked from commit 53eca459f1 )
2020-11-09 16:26:00 +01:00
ee7
b6f8ed7193
CI(actions): Replace deprecated add-path commands ( #15892 )
...
This commit resolves the following warning in the CI logs:
> Error: The `add-path` command is deprecated and will be disabled soon.
> Please upgrade to using Environment Files. For more information see:
> https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
The deprecation is due to an injection vulnerability (CVE-2020-15228).
See:
- https://bugs.chromium.org/p/project-zero/issues/detail?id=2070
- https://github.com/nim-lang/Nim/runs/1373146963#step:8:1
(cherry picked from commit 3948b40bcd )
2020-11-09 16:25:54 +01:00
cooldome
18289607eb
Fix 15629 ( #15888 )
...
* fix #15858
* fix space
* fix #15629
* Revert "fix space"
* Revert "fix #15858 "
(cherry picked from commit 69fe707025 )
2020-11-09 16:25:22 +01:00
cooldome
d57418ab9e
Fix #15858 ( #15887 )
...
* fix #15858
* fix space
* fix #15629
* Revert "fix #15629 "
(cherry picked from commit d5a0a5dfff )
2020-11-09 16:25:14 +01:00
n5m
e7e33b14b5
improve Testament docs ( #15881 )
...
* fix mentions of recursive test discovery
* document that {.fatal.} pragmas cannot be caught
(cherry picked from commit 3bff12b966 )
2020-11-09 16:25:07 +01:00
Bung
cd97e3ef98
export PrettyOptions,prettyPrint from nimpretty ( #15865 )
...
(cherry picked from commit 204435ad97 )
2020-11-09 16:25:00 +01:00
cooldome
283698b1ec
fix #15707 ( #15870 )
...
(cherry picked from commit 7b19217798 )
2020-11-09 16:24:20 +01:00
flywind
8f35bca839
fix #12558 ( #15864 )
...
* fix #12558
* Update compiler/pragmas.nim
(cherry picked from commit 673c5990c6 )
2020-11-09 16:24:00 +01:00
n5m
12145adecd
include example of error-marked copy proc ( #15886 )
...
* include example of error-marked copy proc
* Update destructors.rst
(cherry picked from commit 3be404af04 )
2020-11-09 16:23:45 +01:00
Clyybber
5ea4dea4ea
Closes #12897 ( #15867 )
...
(cherry picked from commit 60c364fb22 )
2020-11-09 16:22:13 +01:00
flywind
e7d14ce6f2
close #8829(add testcase for #8829 ) ( #15866 )
...
(cherry picked from commit fb60e35a54 )
2020-11-09 16:22:05 +01:00
flywind
839ec1395d
follow #11707(add pragmas examples for =>) ( #15863 )
...
(cherry picked from commit 9fd67958b9 )
2020-11-09 16:21:57 +01:00
flywind
ac32cf129b
fix #15851 ( #15852 )
...
* fix #15851
* {.cast(noSideEffect).}
(cherry picked from commit 218ff27b70 )
2020-11-09 16:21:16 +01:00
cooldome
992912e21d
static[T] related fixes ( #15853 )
...
* close #9679
* close #7546
* close #9520
* close #6177
(cherry picked from commit cdd459dd60 )
2020-11-09 16:21:11 +01:00
cooldome
ca53629c42
fix #15609 ( #15856 )
...
* fix #15609
* fix test
(cherry picked from commit fa5f225efc )
2020-11-09 16:21:03 +01:00
Clyybber
554a9ad156
Tiny unittest doc fix
...
(cherry picked from commit d1bea1f71f )
2020-11-09 16:20:51 +01:00
cooldome
1c027d591c
Fix #12636 ( #15850 )
...
* close #11142
* fix #12636
* undo unwanted changes
* fix illegal recursion case
(cherry picked from commit 3af7818af4 )
2020-11-09 16:20:43 +01:00
cooldome
0ed4c2bc4f
close #11142 ( #15847 )
...
(cherry picked from commit 9455a0c3e3 )
2020-11-09 16:19:28 +01:00
flywind
ac25f63f82
document #15618 ( #15810 )
...
* document #15618
* Update lib/pure/unittest.nim
* Update lib/pure/unittest.nim
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
* Update lib/pure/unittest.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
(cherry picked from commit adde5ba6b0 )
2020-11-09 16:19:14 +01:00
flywind
e5a04f8914
fix adding empty sequence to HTTP headers ( #15783 )
...
* fix adding empty sequence to HTTP headers
* add tests
(cherry picked from commit c4cc907433 )
2020-11-09 16:19:05 +01:00
flywind
8c31c210ee
fix #15663 ( #15839 ) [backport:1.4]
...
(cherry picked from commit 8e1fa84b0d )
2020-11-09 16:18:20 +01:00
flywind
64ded4a51f
fix #15463 ( #15831 )
...
(cherry picked from commit a8af664e8b )
2020-11-09 16:18:03 +01:00
flywind
5da17acfce
change non-working example to runnableExamples ( #15841 )
...
(cherry picked from commit cae92f670a )
2020-11-09 16:15:49 +01:00
flywind
5bc573cf1e
close #10307(add testcase for #10307 ) ( #15840 )
...
(cherry picked from commit dfa2f011d7 )
2020-11-09 16:15:42 +01:00
flywind
b100c67515
close #8457 ( #15844 )
...
(cherry picked from commit fdd25ed19c )
2020-11-09 16:15:35 +01:00
cooldome
c2263c685f
Use modern enums in compiler ( #15775 )
...
(cherry picked from commit 00b495de95 )
2020-11-09 16:14:22 +01:00
cooldome
01403f8cfa
fix static[Slice[T]] as argument issue ( #15842 )
...
(cherry picked from commit 4c19c5dfae )
2020-11-05 09:19:51 +01:00
c-blake
2443b40623
Clarify the sense in which Nim supports recursive iterators in the ( #15834 )
...
manual, the tutorial, and the `tbintree` test.
(cherry picked from commit f17555770e )
2020-11-05 09:19:35 +01:00
flywind
3565d14cc4
fix #15835 ( #15838 )
...
* fix #15835
* add tests
(cherry picked from commit 7d640e0943 )
2020-11-05 09:19:27 +01:00
flywind
6d9961c898
fix deprecated messages regarding high ( #15832 )
...
(cherry picked from commit 75dc69417a )
2020-11-05 09:18:45 +01:00
flywind
740112c1e0
fix #12640 ( #15829 )
...
(cherry picked from commit b8bcf236dd )
2020-11-05 09:17:52 +01:00
flywind
bf446e8cec
follow #15818 and close #7109 ( #15823 )
...
* follow #15818 and close #7109
* Update compiler/jsgen.nim
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
(cherry picked from commit fde17b159f )
2020-11-05 09:17:42 +01:00
Andreas Rumpf
bb3cdcad99
fixes #15804 ( #15820 )
...
* fixes #15804
* fix the existing test
* add the testcase for #15804
Co-authored-by: narimiran <narimiran@disroot.org >
(cherry picked from commit dfd8a83f35 )
2020-11-05 09:17:29 +01:00
flywind
9954b7f046
fixes #15594 ( #15819 )
...
(cherry picked from commit eb429988cd )
2020-11-05 09:17:12 +01:00
flywind
dd36bfffa1
more clear ( #15812 )
...
(cherry picked from commit 4fe56b56ce )
2020-11-05 09:16:24 +01:00
flywind
9d9bf12e1c
Closure iterators are not supported by VM ( #15818 )
...
(cherry picked from commit 5b4c17b5e7 )
2020-11-05 09:16:10 +01:00