Razvan Nitu
b51f3e0ffc
Merge pull request #8198 from nordlow/pure-mallocator
...
Qualify Mallocator members as const
2021-08-19 18:56:34 +08:00
nordlow
d30a978370
Qualify Mallocator members as const
2021-08-19 12:18:29 +02:00
Luís Ferreira
8514636059
std.math.algebraic: use fabs from druntime
...
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2021-08-19 09:56:55 +00:00
Luís Ferreira
6fa9189df9
std.stdio: change exit(0) to _exit(0) to prevent segfault
...
Fixes #22222 .
`exit(0)` call from libc does an exit sequence before exit and therefore
doesn't exit immediately. This causes problems on custom unittest runners. To
circunvent this problem we should call `_exit()` syscall to exit immediately.
In this context this is just fine to do and can prevent any future frustration
when debugging.
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2021-08-19 04:23:46 +00:00
Iain Buclaw
6bd92f053f
Cirrus CI: Bump FreeBSD version to 12.2
2021-08-17 23:51:46 +00:00
Iain Buclaw
429984ff7b
Cirrus CI: Add FreeBSD 11 pipeline
2021-08-17 15:53:05 +00:00
Razvan Nitu
c143cb5bf1
Merge pull request #8185 from vladchicos/issue_19727
...
[DSSv3] Fix Issue 19727 - std.algorithm.endsWith fails to compile while startsWith succeeds
2021-08-16 17:25:37 +08:00
Razvan Nitu
4239ed8ebd
Merge pull request #8190 from bitbckt/outbuffer-ctfe
...
Add compile-time checked variants of writef and writefln to std.outbuffer.
2021-08-13 16:43:03 +08:00
Paul Backus
32f32525bf
Fix issue 22077 - std.sumtype
support for copy constructors is incomplete
...
Previously, SumType would define the wrong set of constructors for types
whose copyability varies depending on their mutability--a situation that
was impossible with postblits, but is now possible with copy
constructors.
2021-08-12 03:23:11 +00:00
vladchicos
bbfe30a671
Add clarifications
2021-08-12 05:09:14 +03:00
vladchicos
cba0b3f813
Added more unittests
2021-08-12 05:09:14 +03:00
vladchicos
7a715fe687
Fix for popBack/popFront
...
popBack/popFront works for RoRs starting and/or ending with empty items
2021-08-12 05:09:14 +03:00
vladchicos
e32b635f05
Added more unittests
2021-08-12 05:09:14 +03:00
vladchicos
68dab0e2e5
Fix Issue 19727 - std.algorithm.endsWith fails to compile while startsWith succeeds.
2021-08-12 05:09:14 +03:00
Martin Kinkelin
159b0c7c46
Fix Cirrus CI (bump Ubuntu to 18.04)
...
As DMD bumped that base image, and Phobos CI depends on the DMD CI
scripts (libcurl3 vs. libcurl4 etc.).
2021-08-12 01:13:20 +00:00
Razvan Nitu
8904398152
Merge pull request #8188 from dkorpel/rbtree-trusted
...
Mark RBNode.left and RBNode.right `@trusted`
2021-08-10 17:25:49 +08:00
The Dlang Bot
21227390e7
Merge pull request #8189 from MartinNowak/merge_stable
...
merge stable
Signed-off-by: Iain Buclaw <ibuclaw@users.noreply.github.com>
Merged-on-behalf-of: Iain Buclaw <ibuclaw@users.noreply.github.com>
2021-08-09 22:47:12 +00:00
Brandon Mitchell
68c9430f19
Add compile-time checked variants of writef and writefln to std.outbuffer.
2021-08-09 14:21:54 -07:00
Martin Nowak
31a946b999
Merge remote-tracking branch 'upstream/stable' into merge_stable
...
Conflicts:
std/typecons.d
2021-08-09 22:41:03 +02:00
dkorpel
53cd09c1fb
mark RBNode.left and RBNode.right @trusted
2021-08-09 12:29:07 +02:00
Mathis Beer
f0372ae659
Fix issue 22176: Revert 51bdf472df
...
Revert "Fix Issue 20552 - Deprecated Nullable.get warning with Appenders"
`Nullable.get` is removed anyways.
2021-08-07 17:11:55 +00:00
Razvan Nitu
ccecbda25f
Merge pull request #8183 from vladchicos/issue_16210
...
[DSSv3] Fix Issue 16210 - std.utf.byUTF can be made into a bidirectional range
2021-08-06 14:31:07 +08:00
Razvan Nitu
dc06862fa0
Merge pull request #8176 from ljmf00/fix-functiontypeof
...
Fix Issue #22140 : FunctionTypeOf fails for template opCall without any templated argument
2021-08-04 15:20:31 +08:00
Luís Ferreira
84f7c9b4b5
std/traits: FunctionTypeOf fails for template opCall
...
Fixes Issue #22140 .
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2021-08-04 01:47:07 +01:00
vladchicos
9ff8f339aa
static if inside the save function
2021-08-03 16:34:59 +03:00
vladchicos
47e5c48f5e
different save function for forward and bidirectional ranges
2021-08-03 15:39:58 +03:00
vladchicos
cd9fd4edb8
the description of what byUTF returns is more clear
2021-08-03 15:39:58 +03:00
vladchicos
5d7d9a1d9f
early returns in back() functions
2021-08-03 15:39:58 +03:00
vladchicos
c76af82422
Fix Issue 16210 - std.utf.byUTF can be made into a bidirectional range.
2021-08-03 15:39:58 +03:00
The Dlang Bot
61ffff8b00
Merge pull request #7712 from tom-tan/make-Tid-toString-safe
...
Make `std.concurrency.Tid.toString` @safe-able
Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2021-08-03 11:44:03 +00:00
Tomoya Tanjo
9bb5abdd45
Fix import
2021-08-03 12:57:03 +03:00
Tomoya Tanjo
f468c8290b
Make Tid.toString
@safe-able
2021-08-03 12:57:03 +03:00
Razvan Nitu
e8238084f7
Merge pull request #8186 from Geod24/remove-dead-code
...
Remove dead demangling code for funcattr / param stc
2021-08-03 17:52:29 +08:00
Geod24
c01b9a5b6f
Remove dead demangling code for funcattr / param stc
...
This code is dead since we now have a dedicated trait in the frontend,
instead of deriving it from the mangling.
2021-08-03 17:54:31 +09:00
Razvan Nitu
46740ec6f5
Merge pull request #8184 from vladchicos/issue_16218
...
[DSSv3] Fix Issue 16218 - Windows std.file.readImpl should be marked @system
2021-08-03 05:04:16 +08:00
vladchicos
95329239c9
Windows readImpl is now marked @trusted
2021-08-02 17:55:56 +03:00
vladchicos
f3be11dc29
Fix Issue 16218 - Windows std.file.readImpl should be marked @system.
2021-08-01 14:59:39 +03:00
The Dlang Bot
1a0e4e7965
Merge pull request #7506 from Biotronic/Issue20665
...
Fix issue 20665 - std.concurrency.spawn should document not working with delegates
Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2021-08-01 04:36:13 +00: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
RazvanN7
69800d9475
Fix Issue 20665 - std.concurrency.spawn should document not working with delegates
2021-07-30 14:13:43 +03:00
Biotronic
abb2156487
Fix issue 20665
2021-07-30 12:30:59 +03:00
Razvan Nitu
b48cca57e8
Merge pull request #8151 from DoctorNoobingstoneIPresume/210615_std_container_array_Payload_insertBack_01h
...
std.container.Array: insertBack: Extra checks (including addition overflow).
2021-07-28 18:30:26 +08:00
Walter Bright
3301a20c16
fix Issue 22146 - std.algorithm.searching.findAdjacent() can fall off end of function
2021-07-26 14:37:43 +00:00
Nathan Sashihara
1bdcf1f512
isSomeChar!(Unqual!T) -> isSomeChar!T
...
Removing the redundant `Unqual` does not change the result.
2021-07-24 09:26:46 +00:00
The Dlang Bot
4ea930b6cd
Merge pull request #8172 from MartinNowak/merge_stable
...
merge stable
Signed-off-by: Petar Kirov <PetarKirov@users.noreply.github.com>
Merged-on-behalf-of: Petar Kirov <PetarKirov@users.noreply.github.com>
2021-07-23 06:23:34 +00:00
dandrei279
11bf097658
[DSSv3] Fix Issue #21100 : Add data() function to std.container.array.Array ( #8174 )
...
[DSSv3] Fix Issue #21100 : Add data() function to std.container.array.Array
Signed-off-by: Max Haughton <maxhaton@users.noreply.github.com>
Merged-on-behalf-of: Max Haughton <maxhaton@users.noreply.github.com>
2021-07-21 02:23:10 +00:00
John Colvin
220e92223e
Change private variable canExtend to tryExtendBlock to reflect use
2021-07-20 10:42:00 +00:00
Martin Nowak
df280fd7ab
Merge remote-tracking branch 'upstream/stable' into merge_stable
2021-07-20 10:54:24 +02:00
Max Haughton
734d46591d
Merge pull request #8170 from maxhaton/DocNamedCaptures
...
Fix Issue 21600 - (Try to) Document named captures
2021-07-20 03:41:06 +01:00
Max Haughton
adff6577b9
Merge pull request #8171 from maxhaton/DocReturnReadf
...
Fix Issue 21495 - File.readf documentation does not state what what i…
2021-07-20 03:40:24 +01:00