Commit graph

496 commits

Author SHA1 Message Date
Ate Eskola
c5c559343d fix issue 20937 - std.range.array of a lengthless range with indirection is not @safe 2021-08-24 23:15:08 +03:00
lucica28
95c0aa6786
[DSSv3] Fix issue - 16339 (#8181)
[DSSv3] Fix issue - 16339

Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2021-07-30 15:40:04 +00:00
John Colvin
220e92223e Change private variable canExtend to tryExtendBlock to reflect use 2021-07-20 10:42:00 +00:00
dkorpel
9ec24190b1 add explicit scope/return for pure functions 2021-07-11 13:34:25 +00:00
Luís Ferreira
47546dd850
std: array: refactor std.array unittest blocks and attribute annotation (#8155)
std: array: refactor std.array unittest blocks and attribute annotation

Signed-off-by: Mathias LANG <pro.mathias.lang@gmail.com>
Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2021-07-07 14:14:44 +00:00
berni44
6f2a0934a7 Adapt imports of std.format to new structure of std.format. 2021-03-19 13:22:00 +01:00
Ate Eskola
a9081b1828 Miscellaenous improvements to std.array unit tests 2021-03-08 18:40:44 +02:00
Boris Carvajal
276053dd07
Remove a few uses of fully qualified names that rely on a DMD bug 2021-02-22 08:16:13 -03: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
Vladimir Panteleev
fe60735735 std.array: Don't assume that .idup of immutable array will reallocate 2020-11-24 14:56:38 +01:00
Kazuya Takahashi
f3c8d75a9e Fix Issue 21256 - Segfault with Appender!string.init.toString() 2020-11-18 00:17:44 +01:00
Richard Manthorpe
10e862b458 Fix Issue 21337: Join can iterate ranges multiple times 2020-10-23 20:47:48 +02:00
Steven Schveighoffer
17ae8fc9be Make it so std.utf can be tested with no autodecoding. 2020-08-17 06:53:34 +02:00
Steven Schveighoffer
6065ce793c Fix 21131. Detect certain string appending situations and properly
handle them.
2020-08-07 13:03:26 +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
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
Adam D. Ruppe
ae93f5317c Use consistent quickindex wrapper around hand-written list-of-links tables 2020-02-21 21:04:05 -05:00
Alexandru Militaru
bb62aaca3d Replaced version (unittest) with version (StdUnittest) to avoid unnecessary overhead when compiling with -unittest 2020-01-19 14:05:17 +02:00
MoonlightSentinel
2ef69be4b2 Remove deprecated Appender.toString overload 2019-11-16 18:23:04 +01:00
Walter Bright
e7aa772fb5 array.d: replace Error with assert() 2019-09-12 22:32:00 -07:00
Vladimir Panteleev
fe87dc7c42
Fix Issue 20186 - File size of "Hello, world" executable increased by 185KB
We can delay the std.format import until the relevant templates are
instantiated.
2019-09-01 03:24:17 +00:00
The Dlang Bot
858b1d4a46
Merge pull request #7134 from WalterBright/array-nad2
fix assocArray() unittests for no autodecode
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2019-08-16 01:16:26 +02:00
The Dlang Bot
5b83b74bf1
Merge pull request #7135 from WalterBright/array-nad3
fix unittests for array.join() for no autodecode
merged-on-behalf-of: Walter Bright <WalterBright@users.noreply.github.com>
2019-08-15 10:28:27 +02:00
Walter Bright
ce46d9ae20 fix unittests for array.join() for no autodecode 2019-08-14 23:54:58 -07:00
Walter Bright
1d0153dc58 fix assocArray() unittests for no autodecode 2019-08-14 23:28:03 -07:00
Walter Bright
82f8d4030d fix array(String) to work with no autodecode 2019-08-14 22:38:21 -07:00
Walter Bright
fbbdb721a5 Appender and RefAppender: use opSlice() instead of data() 2019-07-31 17:12:01 -07:00
Robert Schadek
72d4cc7345 assert messages for std.array
more work on starting to work on dlang/phobos/project/2
2019-05-24 15:02:25 +01:00
Marco de Wild
b4756c2f5f
Improved error message when an assocArray can't be created 2019-05-12 00:19:58 +02:00
Walter Bright
b8b710f66e more scope for FormatSpec 2019-03-18 00:27:33 -07:00
Cameron Ross
fceed0d725
remove op param from ddoc 2019-01-23 04:57:00 -04:00
Cameron Ross
cae450bbf9
try to fix ddoc 2019-01-21 21:54:04 -04:00
Cameron Ross
e26cec8fdd
alias std.array.Appender.opOpAssign to put 2019-01-21 21:16:08 -04:00
Mathis Beer
7876c1d48d Fix issue 19572: Prevent Appender from implicitly calling struct constructors to cast away const. 2019-01-11 16:29:42 +01:00
Steven Schveighoffer
072463511c
staticArray needs to appear in jump table. 2018-12-26 17:38:44 -05:00
Sebastian Wilzbach
c7106f02b9
Merge pull request #6811 from edi33416/issue_13300
Fix Issue 13300 - pure function 'std.array.Appender!(T[]).Appender.en…
2018-12-23 11:23:05 +01:00
Eduard Staniloiu
fa19e3f5e7 Make ensureAddable and callers infer function attributes 2018-12-19 15:04:41 +02:00
Eduard Staniloiu
c575e985b3 Fix Issue 13300 - pure function 'std.array.Appender!(T[]).Appender.ensureAddable' cannot call impure function 'test.T.__fieldPostBlit' 2018-12-18 19:27:54 +02:00
Sebastian Wilzbach
49b4143b8e Remove isDynamicArray 2018-11-15 15:07:46 +10:00
Sebastian Wilzbach
bf5dc02f1a Fix Issue 9702, 10930 - std.array.replace cannot simple replace an element in array 2018-11-15 15:07:46 +10:00
The Dlang Bot
f961aa8686
Merge pull request #6155 from wilzbach/fix-5502
Fix Issue 5502 - More handy ways to create associative arrays
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-11-03 23:30:21 +01:00
dukc
84fe94c00e Removed an unittest of minimallyInitializedArray that can fail randomly 2018-10-31 12:38:38 +02:00
Sebastian Wilzbach
3cfe2c11fa Fix Issue 5502 - More handy ways to create associative arrays 2018-10-30 15:59:52 -04:00
The Dlang Bot
0994f692e2
Merge pull request #6711 from FeepingCreature/fix/join-unassignable-const-arrays
Fix issue 19257: std.array.join: only remove const if you can actually assign const to non-const values
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-10-03 01:06:34 +02:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Mathis Beer
7a32298747 Fix issue 19257: Only remove const on .join if you can actually assign const to non-const values. 2018-09-21 11:43:40 +02:00
dukc
16881035dc Addressed Andrei's review. 2018-06-29 22:18:12 +02:00
Timothee Cour
e191a7d6a4 Fixes Issue 16745 - Add template helper for creating static arrays with the size inferred 2018-06-29 22:18:12 +02:00
Steven Schveighoffer
4fe18b9055 Fix issue 18995 - Make sure GC calls destructor when using std.array.array 2018-06-16 14:42:40 -04:00