Commit graph

148 commits

Author SHA1 Message Date
Nick Treleaven
281f42d306
Fix missing unittests in docs (#8603)
* Fix missing staticArray unittest in docs

Found using https://github.com/dlang/dmd/pull/14527.

* Fix missing FloatRep and DoubleRep unittests in docs

* 2 JSONValue op overloads

* std.random

* detabber

* remove

* std.digest.murmurhash
2022-10-17 05:43:13 +08:00
wolframw
dc697c8dd8 Fix Issue 22105 - std.container.array.Array.length setter creates values of init-less types 2021-12-28 23:33:31 +00:00
wolframw
ef9ed4fa19 Fix link in documentation 2021-12-25 03:32:26 +00:00
Martin Kinkelin
62780daf85 Prefer __traits(initSymbol) over TypeInfo.initializer() 2021-11-17 05:12:47 +00:00
Tobias Pankrath
30aabd8b9c Mentions type in error message for missing opPostMove 2021-09-26 12:54:34 +00:00
dkorpel
9ec24190b1 add explicit scope/return for pure functions 2021-07-11 13:34:25 +00:00
Nathan Sashihara
edd9007c35 Fix Issue 21724 - std.algorithm.mutation.copy fails on overlapping arrays if the source array's pointer is less than the destination array's pointer 2021-04-25 20:43:24 +08:00
Martin Kinkelin
1a459c5996 Get rid of std.conv.emplace[Ref](), use core[.internal].lifetime
The emplace() stuff was moved to druntime; for some reason, it's still
in Phobos.

I've diffed the two versions, and they are still almost identical (incl.
unittests); the druntime version appears to have seen some improvements
(e.g., forwarding r/lvalueness of the arguments) in the meantime.
2021-01-17 16:02:25 +01: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
The Dlang Bot
ffca395ed2
Merge pull request #7441 from Geod24/bugzilla-links
Change all bug ID to links
merged-on-behalf-of: Vladimir Panteleev <CyberShadow@users.noreply.github.com>
2020-04-14 17:42:07 +02:00
Steven Schveighoffer
637ba8560e Fix issue 20732. Do not invoke any complex copy construction for
std.algorithm.mutation.swap for the temporary.
2020-04-13 11:33:54 -04:00
Geod24
04f3979317 Replace 'Issue XXX' with Bugzilla links
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
Martin Nowak
d2e931f149 Merge remote-tracking branch 'upstream/stable' into merge_stable 2019-08-05 08:51:49 +02:00
The Dlang Bot
1a66781127
Merge pull request #7006 from marcioapm/fix_19838
Fix Issue 19838 - RefCounted fails to instantiate due to pureness of …
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-07-10 13:11:38 +02:00
Les De Ridder
4be9b5f59f Implement Phobos side of DIP1014 2019-06-30 22:51:05 +02:00
Sebastian Wilzbach
12c5e1ee91 Use selective top-level module imports in std.algorithm 2019-05-23 10:21:19 +02:00
Márcio Martins
2e408f13ea Fix Issue 19838 - RefCounted fails to instantiate due to pureness of moveEmplace 2019-05-15 11:44:54 +02:00
Andrei Alexandrescu
439b9a701b Consolidate overloads of copy() 2019-03-27 22:28:59 -04:00
Eduard Staniloiu
a3fdf76c09 Fix Issue 18913 - Cannot move static array of non-copyable type 2018-12-19 16:04:06 +02:00
aG0aep6G
08f76c2974 Ddoc: fix botched backticks 2018-10-16 23:37:17 +02:00
Nathan Sashihara
947ba51707 Fix Issue 19236 - Replace runtime typeid(T).initializer().ptr is null checks with compile-time __traits(isZeroInit, T) 2018-09-09 12:19:34 -04:00
The Dlang Bot
1d70525d00
Merge pull request #6485 from aG0aep6G/18804
fix issue 18804 - std.algorithm.mutation.copy puts whole source range…
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-06-19 00:34:14 +02:00
Sebastian Wilzbach
622c5d2098 Fix Issue 12086 - std.algorithm.remove + range of indices produces wrong results 2018-06-07 21:35:10 +02:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
aG0aep6G
19052b08de fix issue 18804 - std.algorithm.mutation.copy puts whole source range into target range when it should put elements 2018-04-30 03:06:02 +02:00
John Colvin
8d314b5ffb Fix Issue 18525: std.algorithm.mutate.remove should work on mutable strings 2018-04-18 10:23:23 +01:00
Sebastian Wilzbach
4c016d129f Remove superfluous _range used to avoid auto-highlighting 2018-04-09 21:31:57 +02:00
Nathan Sashihara
c1d1c0e874 Issue 18715 - Non-documented unittests should not use unpredictableSeed or default Random alias 2018-04-04 18:08:00 -04:00
Sebastian Wilzbach
f5e5075eaa [Trivial] Remove std.stdio imports from std.algorithm.mutation 2018-03-20 16:20:23 +01:00
The Dlang Bot
78f7209c4a
Merge pull request #6156 from wilzbach/fix-8341
Fix Issue 8341 - topN(zip()) doesn't work
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-03-12 14:07:43 +01:00
Sebastian Wilzbach
adf6113eb9 Fix Issue 18492 - DLang STL links are broken 2018-02-23 04:31:09 +01:00
Sebastian Wilzbach
f7b69b2f0a Unify all reverse overloads into one 2018-02-11 18:27:59 +01:00
Sebastian Wilzbach
3acaa9d53a Fix Issue 11555 - std.algorithm.reverse should return the just-reversed range 2018-02-11 16:46:19 +01:00
Sebastian Wilzbach
ede44cbc63 Fix Issue 8341 - topN(zip()) doesn't work 2018-02-11 01:24:18 +01:00
The Dlang Bot
2ff0a05ca0
Merge pull request #6090 from wilzbach/algo-doc-grouping
Group documentation in std.algorithm
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-02-02 14:51:36 +01:00
Sebastian Wilzbach
7fb3d4249f Remove references to STL 2018-01-30 16:08:20 +01:00
Sebastian Wilzbach
31cf21bb86 Group documentation in std.algorithm.mutation 2018-01-30 15:25:38 +01:00
The Dlang Bot
f3189822ab
Merge pull request #5989 from wilzbach/static-foreach
Use static foreach in Phobos
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-01-03 19:05:07 +01:00
Sebastian Wilzbach
7de3787876 Use static foreach in Phobos 2018-01-03 17:30:11 +01:00
The Dlang Bot
db2d2413b4
Merge pull request #5970 from wilzbach/markdownify-algorithm
Markdownify std.algorithm
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-03 15:44:56 +01:00
Sebastian Wilzbach
b0575c8a66 @safeify more unittests II 2018-01-03 06:26:05 +01:00
Sebastian Wilzbach
fc0c29f3a2 Markdownify std.algorithm
Done with: https://github.com/wilzbach/dscanner-fix/blob/master/d_code_markdown.d
2017-12-29 01:17:40 +01:00
Sebastian Wilzbach
2591b61b4f Start removing std.{json,zip,zlib,algorithm.mutation}
from the assert_without_msg blacklist
2017-12-01 09:28:05 +01:00
Sebastian Wilzbach
97a2c88175 Move public unittest below their respective declaration 2017-11-20 14:17:41 +01:00
Martin Nowak
a34a25ead9 fix Issue 17730 - move escapes scope variable in @safe code
- needs to be annotated with return scope, so that the return value
  lifetime depends on the argument's lifetime
- cannot be tested because phobos doesn't yet work with DIP1000 and
  also because of Issue 17932
2017-10-23 22:10:19 +02:00
RazvanN7
3a4f83577e Get rid of unused variables in std/algorithm 2017-08-02 17:30:16 +03:00
Sebastian Wilzbach
350300b585 Fix docs for std.algorithm.remove (avoid Ddoc auto-escape) 2017-07-11 20:02:16 +02:00
Sebastian Wilzbach
8180178986 has_public_example: std.algorithm.mutation 2017-07-09 02:28:29 +02:00
H. S. Teoh
8b4dc6c7b4 Improve docs for std.algorithm.remove.
Rationale: the most common use for this function is to remove an element
from an array. Therefore, the first example the user should see in the
docs is how to achieve this.  All the rest of the complications, like
`remove` not changing the length of the array and what-not, should be
discussed *afterwards*, not smack in the user's face.  The current first
example is a poor choice for a first example from a user's POV, because
it throws a complicated case out there without first telling the reader
(presumably someone new to the language, since seasoned D coders
wouldn't be needing to read the docs for `remove`) how to accomplish the
simplest, and most common, use case.
2017-07-05 10:34:45 -07:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00