Commit Graph

13246 Commits

Author SHA1 Message Date
Dominik Picheta
07e1da8342 Adds test case for #6846. (#8729) 2018-08-23 20:35:22 +02:00
Oscar Nihlgård
8aae5c9385 Don't assume utcOffset == +0 for old dates on Windows (#8744) 2018-08-23 20:35:22 +02:00
Dominik Picheta
1b1633991a Don't skip poll() when no handles are present. (#8727)
Fixes #7886.

Fixes #7758.

Fixes #6929.

Fixes #3909.

Replaces #8209.
2018-08-23 20:35:22 +02:00
Andreas Rumpf
1c3cfd74ff make ospaths compile; fixes ospaths.getConfigDir for Posix 2018-08-23 17:55:00 +02:00
Andreas Rumpf
361a2d830a enforce the condition of a 'when' condition to be of type bool; refs #8603 2018-08-23 17:54:04 +02:00
Andreas Rumpf
1546826006 add nimHasWarningX and nimHasHintX defines for feature detection purposes 2018-08-23 17:37:23 +02:00
Andreas Rumpf
ae0255ea67 make nimsuggest compile again 2018-08-23 17:36:24 +02:00
Andreas Rumpf
b4ff01b507 make niminst compile again 2018-08-23 16:32:38 +02:00
Araq
30597e643f fixes merge conflict 2018-08-23 11:30:55 +02:00
Araq
cb9e9297fb make highlite.nim compile again 2018-08-23 10:46:24 +02:00
Tim
55a8649749 Decrease source code size in htmlparser and add one check (#8690) 2018-08-23 10:30:16 +02:00
Oscar Nihlgård
d6d3f092a3 Fix for module alias inside brackets (#8726) 2018-08-23 10:23:02 +02:00
awr1
bf973d29da Fixes #8719 (onFailedAssert now works for doAssert) (#8731) 2018-08-23 10:20:58 +02:00
Timothee Cour
52bee6baba partially fix #8218: nim doc --project (#8737) 2018-08-23 10:18:10 +02:00
Timothee Cour
b02bc66197 better formatting for recursive module dependency (#8735) 2018-08-23 08:19:03 +02:00
Araq
b9a1816009 make sequtils compile 2018-08-22 22:48:49 +02:00
Araq
78e2b515a2 make nake test compile again 2018-08-22 17:34:16 +02:00
Oscar Nihlgård
1d93991929 Cleanup ttimes (#8714)
* Refactor fromWinTime

* Cleanup ttimes
2018-08-22 17:20:41 +02:00
Oscar Nihlgård
7dcf435b4b Fix abs & unary sub in semfold (#8724) 2018-08-22 15:59:33 +02:00
LemonBoy
d94ee75d1c Pick skParam symbols when resolving type idents (#8720)
Fixes #8357
2018-08-22 15:49:43 +02:00
Araq
eeafb1a720 make tdefault_nil test compile again 2018-08-22 15:43:36 +02:00
Araq
27f488e5d9 make more tests green; system.repr does not produce 'nil' for strings and seqs anymore 2018-08-22 15:37:57 +02:00
Araq
dbd21d670c make more things compile without isNil 2018-08-22 15:12:02 +02:00
Araq
7896903fd0 make tio test green again 2018-08-22 13:15:19 +02:00
Araq
64517445ea even more strict isNil handling for strings/seqs in order to detect bugs 2018-08-22 12:35:46 +02:00
cooldome
d0f4a929e0 fixes 8594 (#8721) 2018-08-22 12:16:18 +02:00
LemonBoy
a87341775a Don't consider tyAnd/tyNot/tyOr/tyAnything as generic (#8700)
* Don't consider tyAnd/tyNot/tyOr/tyAnything as generic

`containsGenericType` was too shallow and didn't check all the branches.
The resulting half-processed nodes are often simplified by the constant
folding pass but when that's not possible we get a nasty error during
codegen.

Fixes #8693

* Move the blame onto the semFold pass

Slightly better evaluation of `is` forms.
2018-08-22 09:40:31 +02:00
Dominik Picheta
3e7aaa7087 Fixes #8716. (#8717) 2018-08-22 00:18:17 +02:00
Iván Montes
e66d9c9381 Cosmetic: fix typo on TRIPLESTR_LIT (#8663) 2018-08-21 22:17:19 +02:00
zah
96de224a63 Fix #8126 (#8712)
This is a temporary fix that will be reworked in a follow up commit
that aims to eliminate the tfExplicit flag from the compiler. The
complete and proper fix was considered too risky for inclusion just
before our 0.19 release.
2018-08-21 22:14:12 +02:00
Araq
9047c3f582 workaround the fact that top level statements currently don't produce destructor calls 2018-08-21 21:33:19 +02:00
Araq
f12a5431a1 make tests green again 2018-08-21 20:33:47 +02:00
LemonBoy
8e435d7b0c HTML generation in testament works again (#8702)
Fallout from the nil-str patch. Nothing to see here, move along.
2018-08-21 15:15:14 +02:00
LemonBoy
cf20c4460c More robust handling of deprecated pragmas (#8696)
Prevent `deprecated` annotations to "slip" up to the parent module and
warn about unsupported annotations.

Accidentally fixes #7867
2018-08-21 15:07:44 +02:00
LemonBoy
bbe5e8326b sfForward is also sfReorder for skModule symbols (#8692)
Take this into account while searching for undefined forward references.

Fixes #8665
2018-08-21 14:51:23 +02:00
Timothee Cour
0dd31a4f97 fix typo in changelog.md: nnkTupleConst => nnkTupleConstr 2018-08-21 13:10:38 +01:00
Andreas Rumpf
ddaf2e3805 some progress on destructors for builtin seqs 2018-08-20 17:59:47 +02:00
Dmitry Atamanov
b75808c7d9 Fixes ropes regressions due to the not-nil strings (#8687) 2018-08-20 16:55:22 +02:00
LemonBoy
b28c7d434b Update all the default parameters after an instantiation (#8689)
The old implementation relied on the (now?) wrong assumption that
default-valued parameters can only be placed after the required ones.

Fixes #8683
2018-08-20 16:54:13 +02:00
Andreas Rumpf
2def616069 exploit nil seqs for performance (#8688)
* changes $ for seqs to never produce 'nil'
* exploit the fact that empty seqs don't have to allocate in the code generator
2018-08-20 11:54:18 +02:00
Στέφανος
f87a91a3ec Fixed a minor typo (#8685) 2018-08-20 09:40:56 +02:00
Andreas Rumpf
696c0c48c7 fixes merge conflict 2018-08-19 15:14:03 +02:00
Andreas Rumpf
f2263cd129 make tests green again 2018-08-18 18:52:39 +02:00
Andreas Rumpf
792829ad25 exploit the fact that empty seqs don't have to allocate in the code generator 2018-08-18 16:59:59 +02:00
Andreas Rumpf
b2d5bfd076 changes $ for seqs to never produce 'nil' 2018-08-18 16:59:37 +02:00
LemonBoy
b5171f57ef Expand tyAlias in typeToString (#8634)
Fixes #8339
2018-08-18 15:27:47 +02:00
Araq
887987bb1a every .experimental feature has a corrsponding 'nimHasX' define; fixes #8644; refs #8672 2018-08-18 01:21:47 +02:00
Dominik Picheta
ced1c13571 Use project name in install tmpl and ensure config dir is created. 2018-08-17 16:26:23 +01:00
Dominik Picheta
eff7e42d7b Fixed install scripts for #8653. 2018-08-17 16:21:37 +01:00
Oscar Nihlgård
5f184eca10 Update changelog 2018-08-17 15:51:02 +01:00