Commit Graph

18199 Commits

Author SHA1 Message Date
Timothee Cour
109cc45398 packedsets fix regression introduced in #15564 (#16060)
* packedsets fix regression introduced in #15564

* add tests
2020-11-20 08:07:51 +01:00
Antonis Geralis
59332ec235 Improve enumerate (#16053)
* Improve enumerate

* updates

* add tests
2020-11-20 00:09:30 +00:00
Timothee Cour
b3c3557c33 fix #16025 repr now consistent: does not insert trailing newline (#16034) 2020-11-19 12:12:51 -08:00
Andreas Rumpf
1efd11e266 fixes #15942 [backport:1.2] [backport:1.4] (#16051) 2020-11-19 13:42:16 +01:00
flywind
1bcc352137 close #14847(add testcase for #14847) (#16045) 2020-11-19 08:31:54 +01:00
Andreas Rumpf
743f2f5faa makes parsesql .gcsafe [backport:1.0] (#16039) 2020-11-19 08:30:23 +01:00
Timothee Cour
44442520bc fix numbering in contributing.rst (#16042) 2020-11-18 19:41:01 -08:00
cooldome
acf8316e50 Disallow nil dereference at compile time (#16032)
* bring back the semfold of nil

* remove space

* fix test

* proc type can't be dereferenced

* disallow nil dereference at compile time

* changelog
2020-11-18 23:30:28 +01:00
Timothee Cour
bf8421a2fc contributing docs: always mentioned referenced issues in PR body (#16038) 2020-11-18 23:29:32 +01:00
Timothee Cour
557dcfd87d fix #16033 nim js --gc:arc works and ignores --gc:arc (#16036) 2020-11-18 23:28:52 +01:00
Andreas Rumpf
2773efa034 fixes db_mysql broken quoting; refs c16ee37a71 (r44209990) [backport:1.4] (#16035) 2020-11-18 23:06:16 +01:00
Andreas Rumpf
b9eb91cbb5 ORC: prepare for another patent-pending optimization (#15996)
* ORC: prepare for another patent-pending optimization

* bugfix

* '=copy' for refs can take a cyclic parameter for more ORC optimizations

* ORC: exploit the common 'it = it.next' pattern

* can't hurt to check for nil

* use an algorithm that is not obviously broken

* restore the test case

* final cleanups for --gc:orc
2020-11-18 22:31:06 +01:00
Igor Ribeiro de Assis
baaa19b927 Do not read the whole file to compute SHA1 hash (fixes 15997) (#16006)
* Do not read the whole file to compute SHA1 hash (fixes 15997)

* Update lib/std/sha1.nim

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>

* Update lib/std/sha1.nim

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>

* Directly break from loop

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>

 [backport:1.2] [backport:1.4]
2020-11-18 20:55:49 +01:00
cooldome
87d3e5331a Semfold for nil cast (#16030)
* bring back the semfold of nil

* remove space

* fix test

* proc type can't be dereferenced
2020-11-18 17:19:57 +00:00
Timothee Cour
33d79b9e64 fix https://github.com/nim-lang/RFCs/issues/286: add FileInfo.blockSize (#16023) 2020-11-18 12:01:43 +01:00
flywind
581bcfe290 fix #6497 (#16027)
* fix #6497

* add testcase for #16027
2020-11-18 07:56:31 +00:00
flywind
e6e1e9574d combine PR#16009 and PR#16012 (#16024)
* fix #15623
* add testcase for #15623
* add testcase
* combine #16009
* support casting nil to NilableTypes in VM
2020-11-18 08:28:05 +01:00
flywind
0869d2a477 fix #15972 (#15994)
* fix #15972

* add testcase

* more
2020-11-18 00:14:14 +00:00
Andrey R (cooldome)
632af8afad Revert "follow #16009 VM supports cast nil to ptr (#16012)"
This reverts commit fec19c980e.
2020-11-17 18:54:33 +00:00
Andrey R (cooldome)
1663ad77e3 Revert "fix #15623 (#16009)"
This reverts commit 0f7f159a35.
2020-11-17 18:54:14 +00:00
flywind
0f7f159a35 fix #15623 (#16009)
* fix #15623

* add testcase for #15623

* fix

* add testcase
2020-11-17 17:05:20 +00:00
flywind
fec19c980e follow #16009 VM supports cast nil to ptr (#16012)
* follow #16009 VM supports cast nil to ptr

* more testcase
2020-11-17 10:47:01 +00:00
Timothee Cour
50d035b789 defer: improve manual, clarify difference wrt try/finally (#16010) 2020-11-17 08:40:17 +01:00
Timothee Cour
61352d5a20 remove unused and misleading FilenameOption.foShort (#15982) 2020-11-16 22:52:02 +01:00
Juan Carlos
a8858eb93e htmlgen: Add lazy loading (#15986) 2020-11-16 10:15:05 -08:00
narimiran
3e5e029ef8 telling us once about a change is enough [ci skip] 2020-11-16 17:46:48 +01:00
flywind
4213f7a6c9 rename: stmt -> typed and expr -> untyped (#15989)
* stmt -> typed

* expr -> untyped

* minor
2020-11-16 14:19:26 +00:00
cooldome
a4d02f591c fix #15910 (#15984)
* fix #15910

* produce op of op is nil

* Trigger build
2020-11-16 11:39:28 +00:00
Andreas Rumpf
fc735e4b08 fix #15934 and #15620 (#15938) [backport:1.4]
* make workaround for #15934 and #15620
* add testcase for #9754
2020-11-15 18:12:53 +01:00
Andreas Rumpf
7eb34d170a fixes #15753 [backport:1.4] (#15971) 2020-11-15 15:47:42 +01:00
Clyybber
92da06e64e Fix nimsuggest/#117 (#15602) 2020-11-15 15:08:27 +01:00
Andreas Rumpf
5ccfc8ccdc Documentation only (#15968)
* Fix #15806

* https://github.com/nim-lang/Nim/pull/15968/files#r523468677
2020-11-15 12:12:50 +01:00
Andreas Rumpf
122f22d163 asynchttpserver cleanups [backport:1.0] (#15966)
* asynchttpserver cleanups [backport:1.0]
2020-11-15 07:27:13 +01:00
Juan Carlos
1b9f37c6dc https://github.com/nim-lang/Nim/pull/15968/files#r523468677 2020-11-14 19:57:06 -03:00
Juan Carlos
c56a6133bb Fix #15806 2020-11-14 15:45:13 -03:00
Juan Carlos
9ab1a86b5b Fix #15806 2020-11-14 15:43:31 -03:00
Juan Carlos
3cebae492e Fix #15806 2020-11-14 15:39:03 -03:00
Juan Carlos
d0dda9efab Fix #15806 2020-11-14 15:31:59 -03:00
Andreas Rumpf
1978b91202 [docs minor]add some tips to intern.rst (#15967)
* [docs minor]add some tips yo intern.rst

* minor
2020-11-14 13:00:06 +01:00
flywind
47ce24f680 fix #12303 (#15964) 2020-11-14 12:51:23 +01:00
flywind
bfa387d384 minor 2020-11-14 18:51:05 +08:00
flywind
5af798c21b [docs minor]add some tips yo intern.rst 2020-11-14 18:47:17 +08:00
Andreas Rumpf
784720a7ef nimgrep: change 2 iterators to closure (#15962) 2020-11-14 10:30:21 +01:00
Timothee Cour
96930b9cae targets: use cpp instead of c++ everywhere (was by far the most common) (#15961) 2020-11-14 10:08:15 +01:00
Timothee Cour
1a47fc2291 strengthen taddr.nim: add test case for #14578; reference other issues; test cpp (#15960) 2020-11-13 14:44:44 -08:00
Andrey Makarov
edd84bd9bc nimgrep: change 2 iterators to closure 2020-11-14 01:21:27 +03:00
Andreas Rumpf
562c6275b8 attempt to make asynchttpserver better; fixes #15925; [backport:1.0] (#15957)
* attempt to make asynchttpserver better; fixes #15925; [backport:1.0]
* better documentation
* fixes 'nim doc'
* makes test green again
* ported to FreeRTOS
* fixes the doc rendering
2020-11-13 20:57:43 +01:00
Araq
02f8b11a71 fixes the doc rendering 2020-11-13 17:16:00 +01:00
Araq
9f566881f1 ported to FreeRTOS 2020-11-13 17:03:07 +01:00
Araq
fa7b12bcf9 makes test green again 2020-11-13 14:18:01 +01:00