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
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
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
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
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
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
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
3415c253a0
Fix Issue 21495 - File.readf documentation does not state what what is returned.
2021-07-20 02:07:01 +01:00
Max Haughton
e0ce464118
Fix Issue 21600 - (Try to) Document named captures
2021-07-20 01:55:01 +01:00
aG0aep6G
26bb8fcae4
add cast(void) to silence warnings in tests ( #8169 )
2021-07-20 08:19:00 +08:00
Razvan Nitu
a5757262be
Merge pull request #8167 from CyberShadow/pull-20210714-205027
...
Fix Issue 22125 - std.process.Config was changed to a struct but miss…
2021-07-16 16:47:46 +08:00
Razvan Nitu
cf83da3ec7
Merge pull request #8164 from dkorpel/fromstringz-array
...
Fix issue 18632 - enable use of fromStringz with char[n]
2021-07-16 16:35:14 +08:00
Dennis
7b90fa3e60
remove usage of octal literals ( #8168 )
2021-07-16 08:10:10 +08:00
Vladimir Panteleev
baf6ede6de
Fix Issue 22125 - std.process.Config was changed to a struct but miss operator overloads
2021-07-15 12:17:39 +00:00
Ate Eskola
06983381cf
Issue 19842 - only class member functions must be used be used as slots
2021-07-13 10:33:38 +00:00
Martin Nowak
3fff60bc50
Merge remote-tracking branch 'upstream/stable' into merge_stable
2021-07-13 12:24:06 +02:00