Commit graph

14793 commits

Author SHA1 Message Date
MoonlightSentinel
c46c2c3aa6 Fix public examples failing due to missing imports 2020-06-28 18:12:56 +02:00
Martin Nowak
64384cf202 Merge remote-tracking branch 'upstream/stable' into merge_stable 2020-06-24 00:08:51 +02:00
The Dlang Bot
595904d376
Merge pull request #7511 from n8sh/issue-20889
Support construction of std.bigint.BigInt from a sign and a byte-array magnitude
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-06-20 03:08:16 +02:00
Andrei Alexandrescu
d65301490a
Merge pull request #7524 from MoonlightSentinel/move-sort
Fix issue - sort should move elements instead of copy...
2020-06-19 09:01:18 -04:00
Andrei Alexandrescu
a3dd382e66
Merge pull request #7530 from Just-Harry/fix-issue-20929
Fix issue 20929 - std.experimental.allocator.expandArray's range-based overload fails to instantiate for char and wchar arrays.
2020-06-19 08:57:42 -04:00
MoonlightSentinel
574f1f594f
Fix issue - sort should move elements instead of copy...
... because it's reordering elements instead. Calling `opAssign` on
unitialized members might also  cause errors if the implementation
requires a valid instance (see `TimSortImpl`)
2020-06-19 09:10:58 +02:00
aG0aep6G
26822f44b5 fix issue 20949 - std.range.popFront is unsafe in release mode 2020-06-18 15:15:46 +02:00
John Colvin
b8e90f4a22
Fix Issue 20943 - std.algorithm.setops.cartesianProduct fails for ranges with @system popFront (#7519)
Let safety of cartesianProduct.Result.popFront be inferred.
2020-06-18 18:08:14 +09:00
Harry Gillanders
86e2d75187 Fix issue 20929
std.experimental.allocator.expandArray's range-based overload fails to
instantiate for char and wchar arrays.
2020-06-18 05:56:06 +01:00
Simen Kjærås
692f909883 Fix issue 20928 2020-06-15 10:11:43 +02:00
The Dlang Bot
b2e2ac0e43
Merge pull request #7527 from MartinNowak/merge_stable
merge stable
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2020-06-12 12:05:21 +02:00
Martin Nowak
fa87fdc1fc Merge remote-tracking branch 'upstream/stable' into merge_stable 2020-06-12 00:12:33 +02:00
Martin Kinkelin
86a24dcafe std.path: Fix tilde expansion for HOME=/ 2020-06-11 20:40:39 +02:00
Martin Kinkelin
a7a1e0dc4e
std.math: Fix comment for isIdentical 2020-06-07 16:32:15 +02:00
Walter Bright
016b33a1a4 scalbn() doesn't inline 2020-06-05 21:46:27 -07:00
Nathan Sashihara
0a0b03353e Fix documentation of std.math.isIdentical for NaN: compares all bits not just payload 2020-06-05 18:48:25 -07:00
Nathan Sashihara
a0f4b65db8 Fix Issue 20889 - Support construction of std.bigint.BigInt from a sign and a byte-array magnitude
For consistency with other std.bigint functions allows arbitrary ranges.
2020-06-04 16:04:26 -07:00
Martin Nowak
3e9b17e7d3 Merge remote-tracking branch 'upstream/stable' into merge_stable 2020-06-04 18:14:08 +02:00
Nick Treleaven
73e71219c0 [std.stdio.writeln] Simplify static checks for string specialization
Checking for a slice or static array whose first element converts to
const(char) is enough; it rules out aggregates, enums, null.
2020-06-03 16:11:53 +01:00
The Dlang Bot
5825b7ad7d
Merge pull request #7505 from welkam/patch-1
Size(). Make description more clear and add example
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-06-03 07:55:57 +02:00
welkam
70d61e22ee removed deleteme and improved description 2020-06-02 22:43:48 +03:00
The Dlang Bot
95e4fb49de
Merge pull request #7503 from MoonlightSentinel/safe-json
Fix Issue 20874 - std.json.assign requires '@safe' and 'pure'
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-05-31 10:05:35 +02:00
The Dlang Bot
ec600564ac
Merge pull request #7500 from denizzzka/generic_FSChar
alias FSChar = char for a wider range of platforms
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2020-05-31 06:17:21 +02:00
The Dlang Bot
781a4a0358
Merge pull request #7509 from n8sh/issue-20887
Improve speed of std.digest.digest!(Hash, Range) on non-array ranges
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-05-31 05:21:45 +02:00
The Dlang Bot
a7bd1a3184
Merge pull request #7502 from MoonlightSentinel/move-safe
Fix Issue 20869 - `move` is overly trusting of `opPostMove`
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-05-31 04:33:26 +02:00
Nathan Sashihara
18f2e6f042 Fix Issue 20887 - Improve speed of std.digest.digest!(Hash, Range) on non-array ranges 2020-05-30 18:04:07 -07:00
wolframw
372b20ca17 fix issue 20882 - Outdated examples in the documentation (std.stdio) 2020-05-30 15:50:59 +02:00
welkam
05f46a852d changed tabs to spaces 2020-05-29 17:15:40 +03:00
welkam
9fa355c26a
Size(). Make description more clear and add example
what title says
2020-05-29 16:39:36 +03:00
MoonlightSentinel
082f8300d9
Fix Issue 20869 - move is overly trusting of opPostMove
Remove the manual check whether move is `@safe` and instead let the
compiler do the attribute interference by adding appropriate @trusted
blocks.

Note:
I could've extend the current checks `trustedMoveImpl` but that could
easily miss other corner cases.
2020-05-29 13:35:07 +02:00
Biotronic
fd59b6a92e Fix issue 19525 2020-05-29 01:18:40 +02:00
MoonlightSentinel
d816788da4
Fix Issue 20874 - std.json.assign requires '@safe' and 'pure' 2020-05-28 23:35:27 +02:00
Denis Feklushkin
dc144b83f6 Set alias FSChar for Windows and all other OSes 2020-05-28 23:13:54 +07:00
Denis Feklushkin
e7e4a4b3a8 FSChar = char for a wider range of platforms 2020-05-28 05:03:54 +07:00
The Dlang Bot
5ebf458b50
Merge pull request #7497 from WalterBright/meta-comment
staticMap: explain design
merged-on-behalf-of: Steven Schveighoffer <schveiguy@users.noreply.github.com>
2020-05-27 19:37:45 +02:00
Steven Schveighoffer
5053d19e67
Update wording 2020-05-27 12:33:50 -04:00
Walter Bright
c308dd134c staticMap: explain design 2020-05-25 18:28:03 -07:00
Andrei Alexandrescu
99eb8616fa Even simpler 2020-05-25 12:57:45 -04:00
Andrei Alexandrescu
f82c606a4b
Replace template AliasSeq with a simple alias
This is a direct realization of AliasSeq that better clarifies its intent.
2020-05-24 20:16:11 -04:00
Kazuya Takahashi
3d56e642ac Add nearbyint, lround, remainder, remquo for MS CRT 2020-05-24 18:18:18 +08:00
The Dlang Bot
ffa63b6204
Merge pull request #7434 from CyberShadow/pull-20200330-230002
std.socket: Improve 16514 unittest to guard against inherited attributes
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-05-24 08:55:16 +02:00
Hiroki Noda
7fa4aaf86f std.traits: FunctionAttribute supports live function 2020-05-22 12:36:13 +09:00
The Dlang Bot
4f7f442d20
Merge pull request #7489 from Biotronic/Issue20850
Fix issue 20850 - Can't assign enum of Tuple
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-05-22 04:33:31 +02:00
wolframw
2c80a0f981 fix refs to core.stdc.stdio.stdin/stdout/stderr 2020-05-22 02:09:20 +02:00
Biotronic
e6eaa8ea24 Fix issue 20850 - Can't assign enum of Tuple 2020-05-21 13:42:04 +02:00
The Dlang Bot
5038ea422a
Merge pull request #7490 from WalterBright/staticMap-cases
speed up instantiation of Filter and staticMap templates
merged-on-behalf-of: Walter Bright <WalterBright@users.noreply.github.com>
2020-05-21 12:17:58 +02:00
Walter Bright
215a49432f speed up instantiation of Filter and staticMap templates 2020-05-21 02:15:32 -07:00
Walter Bright
7a061d91c0 speed up instantation of Reverse and Filter templates 2020-05-21 01:22:24 -07:00
Vladimir Panteleev
38febf9e5c
std.typecons: Fix inconsistent indentation in Nullable implementation
It was previously difficult to see where the implementation of
Nullable ends, because the indentation did not represent the nesting
level.

This also fixes the different DDoc styles used to document Nullable
entries to a single style.
2020-05-20 02:47:01 +00:00
Nathan Sashihara
dfb9099055 Fix Issue 20785 - std.file.setTimes: on macOS use setattrlist to avoid truncating timestamp precision to microseconds 2020-05-18 15:07:27 -07:00