Commit graph

11114 commits

Author SHA1 Message Date
Andrei Alexandrescu
9a8bf131d9 Fix @safe checks 2016-10-21 13:21:41 -04:00
Andrei Alexandrescu
3156509175 Print rng seed upon failure so test can be reproduced 2016-10-21 13:21:41 -04:00
Andrei Alexandrescu
f19c92a1bf topN rewrite 2016-10-21 13:21:41 -04:00
Nick Treleaven
2a45a145e8 Fix Issue 16628 - std.algorithm.equal for known empty or infinite ranges
* If one of the ranges has `Range.empty == true`, we can define `equal`
  even when each `front` is not comparable.
* If one range is infinite and the other defines `length`, return false.
* If both are infinite, cause a compile-time error.
2016-10-20 12:27:32 +01:00
Martin Nowak
336f5c47d2 Merge pull request #4869 from 9il/stable
{please} Implicit cast to const slices
2016-10-19 10:17:09 +02:00
Walter Bright
e333b7ad4e Merge pull request #4864 from MartinNowak/fix16582
fix Issue 16582 - ParameterDefaults fails w/ scope parameter
2016-10-17 11:51:02 -07:00
Steven Schveighoffer
c5d94717b9 Merge pull request #4862 from MartinNowak/parameter_defaults_cruft
remove ParameterDefaults cruft
2016-10-17 08:28:39 -04:00
David Nadlinger
7fe1366ed1 Merge pull request #4870 from DmitryOlshansky/compact-thompson
[std.regex] More compact ThompsonMatcher struct
2016-10-17 02:31:56 +01:00
Dmitry Olshansky
910681ccc9 Merge pull request #4574 from nmtigor/issue_16249
fix issue 16249 - std.signals: disconnect() is unsafe during emit()
2016-10-16 21:51:58 +02:00
Dmitry Olshansky
a2b5649805 [std.regex] More compact ThompsonMatcher struct, some % perf gain 2016-10-16 20:38:06 +03:00
Ilya Yaroshenko
821ccc907b Implicit cast to const slices in case of underlaying range is a pointer. 2016-10-16 18:55:15 +02:00
Ilya Yaroshenko
5ebd773343 reduce test template bloat 2016-10-16 17:14:58 +02:00
Ilya Yaroshenko
52767078cc fix issue 16419 2016-10-16 12:47:04 +02:00
Martin Nowak
f783d975a2 fix Issue 16582 - ParameterDefaults fails w/ scope parameter
- workaround scope escape error to get default parameter
- would require a working `return scope` for a proper implementation
2016-10-16 01:36:27 +02:00
Jonathan M Davis
672662831e Merge pull request #4863 from enckse/patch-1
The word "tranforms" is a typo, should be "transforms"
2016-10-15 12:10:29 -07:00
David Nadlinger
f75b0e030e Merge pull request #4861 from MartinNowak/traits_fixup
remove spurious x identifier in IsExp
2016-10-15 16:26:26 +01:00
Sean Enck
335beff82d The word "tranforms" is a typo, should be "transforms" (especially painful when searching for the word "transforms") 2016-10-15 11:12:28 -04:00
Martin Nowak
c5c1360259 remove unused branch
- variadic template parameters cannot be a function (always need to use func[0])
2016-10-15 16:49:39 +02:00
Martin Nowak
ac7cc674c1 no need to use parameter names to get defaults 2016-10-15 16:49:39 +02:00
Martin Nowak
e46cc8ea25 remove spurious x identifier in IsExp
- gets parsed as is(Type Identifier) but an alias identifier isn't needed
- fixup of ee683ae79f (#2624)
2016-10-15 16:30:26 +02:00
Sebastian Wilzbach
2090d3300d Merge pull request #4842 from ntrel/findSplit-only
[trivial] Add findSplitBefore example with an element using only()
2016-10-14 08:50:56 +02:00
Walter Bright
62d16fd06a Merge pull request #4851 from DmitryOlshansky/regex-faster-htab
[std.regex] Optimize reads from hash table
2016-10-13 17:55:31 -07:00
Jonathan M Davis
dd609e6a6b Merge pull request #4860 from nordlow/no-infinite-make
Restrict making of containers to non-infinite ranges
2016-10-13 14:11:54 -07:00
Per Nordlöw
ad5537d5c9 Restrict making of containers to non-infinite ranges 2016-10-13 16:33:14 +02:00
Vladimir Panteleev
448ddbe2e8 std.socket: Add test for issue 16514 2016-10-13 08:26:47 +00:00
Vladimir Panteleev
b3ea2e4312 Revert "std.socket: Decorate Socket methods"
This reverts commit 1fc5f9b34c.
2016-10-13 08:26:47 +00:00
Walter Bright
9d73ff2353 GetLastError should be imported from core.sys.windows.windows 2016-10-12 20:42:22 -07:00
Stefan Koch
406aa8f8cf Merge pull request #4849 from UplinkCoder/utf_popFront
20% more performance for popFront(char[])
2016-10-12 20:39:57 +02:00
UplinkCoder
8bed6b2843 15% more performance for popFront(char[]) 2016-10-12 20:14:47 +02:00
Johan Engelen
f9e97641cc Fix alignment of std.conv emplacement test buffers. 2016-10-12 12:24:08 +02:00
Dmitry Olshansky
d745fb8ae2 [std.regex] Optimize reads from hash table 2016-10-11 17:28:35 +03:00
Andrei Alexandrescu
71dc211e69 Merge pull request #4848 from andralex/popFront
Tighten popFront
2016-10-10 18:22:31 -04:00
Ilya Yaroshenko
bb2a85994f Merge pull request #4841 from TurkeyMan/ispowerof2
Improved isPowerOf2.
2016-10-10 22:08:42 +02:00
tsbockman
8711a1134d Add Promoted to std.traits. 2016-10-10 12:31:27 -07:00
Andrei Alexandrescu
28b6b462b8 Tighten popFront 2016-10-09 18:04:14 -04:00
Per Nordlöw
0e448d2780 Update primitives.d
Fix typo in explanation.
2016-10-09 22:55:48 +02:00
Martin Nowak
6bbbc6b7a6 Merge pull request #4846 from dlang/stable
merge gdc-dmd fix from stable
2016-10-09 21:40:04 +02:00
Steven Schveighoffer
86ef3a224e Merge pull request #4463 from JackStouffer/issue16073
Partial Fix for Issue 16073 (part 3)
2016-10-09 09:28:22 -07:00
Martin Nowak
df34e4266c Merge pull request #4845 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
2016-10-09 17:38:06 +02:00
Dmitry Olshansky
47adcab045 Merge pull request #4286 from DmitryOlshansky/bitnfa
[std.regex] Bit-NFA kickstart engine
2016-10-09 15:19:54 +02:00
Martin Nowak
74486fee21 Merge remote-tracking branch 'upstream/stable' into merge_stable 2016-10-09 15:00:31 +02:00
Dmitry Olshansky
f8b3eea065 [std.regex] Addressing review comments 2016-10-09 15:35:32 +03:00
Martin Nowak
3bed8dfd33 fix gdc-dmd test - remove the workound for Issue 15316
- we can't really solve Issue 15316 w/ signaling NaNs
  b/c any optimization, copying et.al. might turn signaling into
  quiet NaNs, therefor we want to solve Issue 15316 by switching
  Float.init to use quiet NaNs
- the workaround depends on a specific dmd bug (see #6163)
  that looses SNaNs when writing struct initializers but keeps
  them for Float.init
- this workaround might not be portable to GDC/LDC and
  will easily break w/ slightly different dmd optimizations
  (it's responsible for the test failure of the gdc-built dmd)
- this PR will reopen https://issues.dlang.org/show_bug.cgi?id=11135

this partially reverts commit 0efa1d3bf9
2016-10-09 03:53:33 +02:00
Dmitry Olshansky
d1d53c556c [std.regex] Fixes for recent compiler version 2016-10-07 02:17:40 +03:00
Dmitry Olshansky
cd2c28f402 [std.regex] Trailing whites 2016-10-07 01:43:05 +03:00
Dmitry Olshansky
87847ed480 [std.regex] More tests for issue 9391 2016-10-07 01:41:09 +03:00
Dmitry Olshansky
e98fa4ad5a [std.regex] Fix issue 9391 - const regex, ctRegex is immutable 2016-10-07 01:40:41 +03:00
Nick Treleaven
ae6a8031cf Add findSplitBefore example with an element using only()
Also remove typo.
2016-10-06 12:05:03 +01:00
Manu Evans
0d79b1e124 Improved isPowerOf2. 2016-10-06 15:48:34 +10:00
Steven Schveighoffer
ad739f232e Merge pull request #4840 from MartinNowak/fix16291
fix Issue 16291 - EncodingScheme.create fails
2016-10-05 09:49:20 -07:00