Commit graph

14844 commits

Author SHA1 Message Date
Martin Nowak
30191913c3 Merge remote-tracking branch 'upstream/stable' into merge_stable 2020-08-10 10:51:19 +02:00
Vladimir Panteleev
83ceb907f3
Apply suggestions from code review
Fix cast style.

Co-authored-by: Sebastian Wilzbach <seb@wilzba.ch>
2020-08-05 10:21:59 +00:00
Vladimir Panteleev
6760a3bca1 std.socket: Add a notice on how to test this module at the top of the file 2020-08-05 09:27:06 +00:00
Vladimir Panteleev
c7a9857b53 std.socket: Remove redundant copy of the Boost Software License
- There is already a copy of the full license text in
  ../LICENSE_1_0.txt.

- There is already a standard "License" DDoc header.
2020-08-05 09:27:06 +00:00
Vladimir Panteleev
44288e7fe7 std.socket: Fix bitrotted disabled unittests 2020-08-05 09:27:06 +00:00
Vladimir Panteleev
6e76625186 std.socket: Replace version=SlowTests with debug=std_socket
Have a single switch to control whether to test std.socket "in full"
or not.
2020-08-05 09:27:06 +00:00
Vladimir Panteleev
0a09280594 std.socket: fix Issue 21114: Hide details of "soft" unittests unless built with -debug=std_socket
Reduce noise and false alarms in CI logs.

Also improve the printed message on failure, to make it clear that it
is likely a random failure, and that the ignored test failure is not
what's causing the entire test suite run to fail.
2020-08-05 09:27:05 +00:00
Euan Torano
8e03a95457 Fix issue 21113: Use sysctl for thisExePath on BSD. 2020-08-05 10:20:11 +02:00
Andrei Alexandrescu
f06c92f484 Temporarily disable inlining of T_SHA2_16_79 because it increases build speed by 10x.
See also https://forum.dlang.org/thread/lcgitgilixahbnzwpwfp@forum.dlang.org
2020-08-04 19:01:37 +02:00
Andrei Alexandrescu
42138c021c
Replace Unqual-based idiom with immutable-based idiom (#7576)
Replace Unqual-based idiom with immutable-based idiom
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2020-08-04 04:32:14 +02:00
Nathan Sashihara
453faadf5b Replace is(Unqual!T == Unqual!U) with is(immutable T == immutable U) for speed & memory usage 2020-08-03 15:07:32 +02:00
Geod24
1e73cb8ca7 std.traits: Add support for 'in' storage class
For a long time, the 'in' storage class was only a second class citizen,
merely an alias for 'const', which is a type constructor.
While it was also documented for a long time as being 'scope',
this was removed when 'scope' actually started to have an effect
(when DIP1000 started to be implemented).
Currently, a switch (-preview=in) allows to get back this 'scope'.

However, the 'in' storage class does not really exists,
it gets lowered to 'const [scope]' at an early stage by the compiler,
which means that we expose what is essentially an implementation
detail to the user.

There is a PR in DMD (dlang/dmd#11474) that aims to give 'in' an actual
identity, instead of it being lowered to 'const [scope]'.
The underlying motivation is to allow for extending 'in''s functionality,
giving it the ability to pass by 'ref' when necessary, and accept rvalues.

However, regardless of the second goal, having proper support for 'in'
would lead to less confusing messages, better code generation,
and less confusion w.r.t. the behavior of `std.traits.ParameterStorageClass`.
2020-08-01 19:39:20 +09:00
Florian
c216486512
std.getopt: Fix link to perl docs (#7572)
The line break is encoded as part of the hyperlink:

`http://%20%20%20%20%20%20%20%20%20%20%20perldoc.perl.org/Getopt/Long.html`
2020-07-31 10:11:06 +08:00
Mathis Beer
f5197c82e7 Fix issue 21088: move alias statement into staticMap mixin body. 2020-07-30 05:51:25 +02:00
Per Nordlöw
a54b71e6e6 Qualify unittests as nothrow @nogc 2020-07-27 18:43:15 +02:00
Per Nordlöw
7b60bf7c53 Wrap static assert assert in unittests 2020-07-27 17:49:55 +02:00
Martin Kinkelin
beb35d3820 Relax some new std.complex unittests for double-precision real 2020-07-27 15:56:21 +02:00
Andrei Alexandrescu
05c79e1af1 unsignedToTempString: use the template version 2020-07-27 03:37:52 +02:00
Mathias LANG
b65799a8e7 Revert "EASY: Companion to https://github.com/dlang/druntime/pull/3167/" 2020-07-26 17:20:19 +02:00
Andrei Alexandrescu
2f18e0d0c1
Merge pull request #7566 from andralex/unsignedToTempString
EASY: Companion to https://github.com/dlang/druntime/pull/3167/
2020-07-26 11:07:07 -04:00
Andrei Alexandrescu
587fd72ce6 Companion to https://github.com/dlang/druntime/pull/3167/ 2020-07-25 12:01:16 -04:00
Nathan Sashihara
9f84d4ff21 sha: bswap without intermediate conversion to byte array 2020-07-25 10:07:59 +02:00
Walter Bright
2f0ea3fded sha: inline critical functions 2020-07-22 11:53:52 +02:00
Walter Bright
e364edfc8c
Merge pull request #7561 from WalterBright/fabs-float
fix fabs() to not use x87 for float/double
2020-07-21 12:15:19 -07:00
Walter Bright
5a0dddcb98 fix fabs() to not use x87 for float/double 2020-07-21 01:18:10 -07:00
Walter Bright
ddca869335 change rotateLeft to rol, rotateRight to ror 2020-07-21 10:01:26 +02:00
Per Nordlöw
8ef03bc2ee
Reuse new builtin trait isCopyable in std.traits.isCopyable (#7522) 2020-07-17 09:46:32 +08:00
Walter Bright
6ca6549f9a std.digest.sha: don't reinvent rotate functions 2020-07-15 18:39:37 +02:00
Steven Schveighoffer
a9fc331652 Clarify getopt behavior with arraySep. 2020-07-15 06:11:18 +02:00
Walter Bright
8b3a082878 std.digest.sha1: don't reinvent bswap() 2020-07-15 05:21:45 +02:00
The Dlang Bot
77fa44cf45
Merge pull request #7518 from John-Colvin/faster_map
Faster staticMap and Filter
merged-on-behalf-of: Atila Neves <atilaneves@users.noreply.github.com>
2020-07-14 15:15:39 +02:00
H. S. Teoh
8812bb5449 Fix bug 12521: update docs to match current getopt behaviour. 2020-07-13 12:13:49 -07:00
Steven Schveighoffer
b842a66f57 Move stableRemove alias to correct place 2020-07-11 08:58:22 +02:00
Walter Bright
76caec12f4 bitmanip: make use of new byteswap() function 2020-07-08 13:25:24 +02:00
Nicholas Wilson
a88271710b
Merge pull request #7542 from ntrel/meta-qual
std.meta: Fix wrong assert for Issue #20863
2020-07-08 17:03:12 +08:00
Simen Kjærås
ea070e9a5c Fix issue 21021 - std.variant confused by alias this when struct larger than maxDataSize 2020-07-07 12:32:14 +02:00
Nick Treleaven
af629b153b std.meta: Comment out (fix) wrong assert for Issue #20863
Necessary for https://github.com/dlang/dmd/pull/11320
2020-07-06 15:59:59 +01:00
Iain Buclaw
22ebc705c1 std.math: Begin deprecation of accidentally leaked AliasSeq 2020-07-03 05:37:57 +02:00
MoonlightSentinel
f3a336bc7b Remove invalid alias from chain's implementation
The ref has no effect anyway
2020-07-02 15:36:11 +02:00
Iain Buclaw
268b56be49 std.math: Remove duplicated RISCV version conditions 2020-06-29 16:35:52 +02:00
Iain Buclaw
6d6c02cda7 std.experimental.allocator.building_blocks.region: Remove duplicated RISCV version condition 2020-06-29 16:35:52 +02:00
The Dlang Bot
4d63a573f8
Merge pull request #7533 from ntrel/meta-map
[std.meta] Improve AliasSeq Map example & other tweaks
merged-on-behalf-of: Atila Neves <atilaneves@users.noreply.github.com>
2020-06-29 15:59:09 +02:00
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
Nick Treleaven
8308cef30b Don't use auto ref lambda 2020-06-21 08:44:41 +01: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