Arne Ludwig
3a2cf7f3cb
Fixed negation of BitFlags
...
- negation did not work with unsigned integers with dmd v2.099.0
- also made double negation of flags possible
2022-03-22 12:47:36 +00:00
The Dlang Bot
a74fa63e67
Merge pull request #8413 from pbackus/fix-22901
...
Fix issue 22901 - Can't construct inout SumType
Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2022-03-21 12:36:58 +00:00
Paul Backus
d9d104c9bc
Fix issue 22901 - Can't construct inout SumType
...
The template constraint is needed to ensure that the inout constructor
overload is only considered when it is an exact match, without qualifier
conversions.
Without the constraint, a constructor call such as
const(SumType!(int[]))([1, 2, 3])
...would be ambiguous, since it would match both the const constructor
overload and the inout constructor overload at the "match with qualifier
conversion" level.
2022-03-20 14:57:40 -04:00
Paul Backus
8a368bde34
Add std.traits.DeducedParameterType
2022-03-20 14:57:25 -04:00
Max Haughton
fdb73b597c
Merge pull request #8411 from dkorpel/typo-preform
...
Fix typo 'preforming'
2022-03-17 14:55:54 +00:00
Dennis Korpel
7ee15aa567
Fix typo 'preforming'
2022-03-17 14:28:21 +01:00
Atila Neves
22959ab86c
Increase @safety of std.conv ( #8410 )
...
Increase @safety of std.conv
Signed-off-by: Dennis <dkorpel@users.noreply.github.com>
Merged-on-behalf-of: Dennis <dkorpel@users.noreply.github.com>
2022-03-14 16:33:45 +00:00
Razvan Nitu
811deefa85
Merge pull request #8406 from schveiguy/defaultloginfo
...
Change default log level to info instead of warning.
2022-03-10 16:39:36 +02:00
Razvan Nitu
16cb085b58
Merge pull request #8376 from pbackus/fix-22736
...
Add std.functional.bind
2022-03-10 16:39:15 +02:00
Razvan Nitu
db7f4234a4
Merge pull request #8408 from aG0aep6G/22867
...
fix issue 22867 - std.utf.decode changes offset despite error.
2022-03-10 16:38:52 +02:00
aG0aep6G
3a97e4a9e9
fix issue 22867 - std.utf.decode changes offset despite error.
2022-03-10 13:08:21 +01:00
Steven Schveighoffer
526beb3d84
Change default log level to info instead of warning.
2022-03-09 11:51:56 -05:00
Dennis Korpel
3d8b95791f
Fix return scope
in cartesianProduct Result.save
2022-03-09 15:37:09 +00:00
The Dlang Bot
8dc3a852ef
Merge pull request #8404 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>
2022-03-08 20:46:31 +00:00
Martin Nowak
9d005f0e3b
Merge remote-tracking branch 'upstream/stable' into merge_stable
2022-03-08 16:05:58 +01:00
Martin Nowak
fd9fd4859f
purge changelog
2022-03-07 23:18:52 +01:00
Paul Backus
18825f0654
Add changelog entry for std.functional.bind
2022-03-07 15:40:27 -05:00
Paul Backus
9d1aeeca2b
Add std.functional.bind
...
Fixes Issue 22736 - Add destructuring bind for std.typecons.Tuple tuples
2022-03-07 15:40:27 -05:00
canopyofstars
668d43c5df
Fix 22851 - Add source reference to std.sumtype
...
Add `Source: $(PHOBOSSRC std/sumtype.d)` to `std.sumtype's` module documentation.
2022-03-06 03:34:35 +00:00
Razvan Nitu
f4138b6740
Merge pull request #8399 from dkorpel/systime-opbinary-retscope
...
Annotate `SysTime.opBinary` as `returnScope`
2022-03-04 11:21:56 +02:00
Martin Kinkelin
90bd2d3de1
Merge pull request #8401 from dlang/JohanEngelen-patch-1
...
Fix 22838 - BitArray.count reads beyond data
2022-03-03 16:45:45 +01:00
Johan Engelen
ba473aebe8
Disable large allocation test that is not supported by AddressSanitizer
...
AddressSanitizer will report an error (rather than returning `null`) for such large allocations.
2022-03-03 02:02:31 +00:00
Johan Engelen
292c38c432
Fix 22838 - BitArray.count reads beyond data
...
This fixes issue 22838
https://issues.dlang.org/show_bug.cgi?id=22838
All hail AddressSanitizer! ;-)
2022-03-03 01:00:41 +01:00
Dennis Korpel
fc3cdd9723
Annotate SysTime.opBinary
as returnScope
2022-03-02 19:00:44 +01:00
Dennis Korpel
e828cfc62b
Annotate SysTime.endOfMonth
as return scope
2022-03-02 17:32:58 +00:00
Paul Backus
a1f8c4c070
Revert "sumtype: work around issue 21975 in isSumType"
...
This reverts commit 2de68340ae
.
2022-03-01 15:09:30 +00:00
The Dlang Bot
d7b0cf72b4
Merge pull request #8396 from MartinNowak/merge_stable
...
merge stable
Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2022-03-01 10:57:45 +00:00
Martin Nowak
679cdd4d4f
Merge remote-tracking branch 'upstream/stable' into merge_stable
2022-03-01 10:19:56 +01:00
Paul Backus
41aaf8c263
Fix Issue 18036 - Documentation of moveFront()
...
...fails to mention different behavior depending on
hasElaborateCopyConstructor
The new wording is based on the documentation for core.lifetime.move.
2022-02-28 12:36:36 +00:00
Luís Ferreira
5bc8b25944
std/file: use size_t instead of ulong for ReadFile on Windows
...
Since ReadFile requires an offset buffer and the maximum size is size_t.max, we
should offset with size_t to avoid overflow on dereferencing.
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2022-02-27 23:40:34 +00:00
Paul Backus
2de68340ae
sumtype: work around issue 21975 in isSumType
...
isSumType!T now evaluates to true instead of false when T is a templated
struct type that implicitly converts to a SumType via alias this.
2022-02-27 23:15:28 +00:00
Razvan Nitu
6bf43144db
Merge pull request #8390 from ljmf00/getopt-safe-printer
...
getopt: mark defaultGetoptPrinter as @safe
2022-02-25 10:51:37 +02:00
Paul Backus
5e3c4af308
sumtype: add example of memory corruption to docs
...
This makes it clearer why SumType.opAssign must sometimes be @system.
2022-02-23 18:30:07 +00:00
Luís Ferreira
d6d058ef18
ci: use ci/run.sh and ci/cirrusci.sh scripts from dmd
...
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2022-02-22 00:49:52 +00:00
Luís Ferreira
e7f45309b5
getopt: mark defaultGetoptPrinter as @safe
...
Fix issue 22798.
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2022-02-22 00:38:36 +00:00
Walter Bright
1a3e80ec25
fix Issue 22791 - std\socket.d(790) Heisenbug random failure ( #8388 )
2022-02-20 15:42:09 +08:00
dkorpel
6389953fa0
Fix bigint return scope order
2022-02-19 11:47:37 +00:00
dkorpel
05700363b8
Add scope
to toImpl
of dynamic array
2022-02-17 23:36:10 +00:00
dkorpel
b3b0e74152
Unblock "address of ref can be assigned to non-scope parameter"
2022-02-17 00:44:02 +00:00
dkorpel
f7c93036b3
Fix return/inout usage in rbtree
2022-02-16 16:27:04 +00:00
dkorpel
c9450a561c
make std.uni unittest compile with inout-return fix
2022-02-16 15:54:55 +00:00
Iain Buclaw
f5b8a65607
Merge pull request #8381 from ibuclaw/rmdeprecations
...
std.zip: Remove declarations with expired deprecations
2022-02-16 09:34:13 +01:00
Iain Buclaw
b3a467c4ef
Merge pull request #8380 from ibuclaw/mvdeprecations
...
etc.c.odbc: Update removal dates for ODBC deprecations
2022-02-16 09:33:30 +01:00
Bastiaan Veelo
b8f0eca5c6
Fix SysTime.fromXXXString() documentation errors.
...
Most notably, the `fromSimpleString` format was plain wrong.
2022-02-15 23:26:34 +00:00
Iain Buclaw
7e4fd2e474
std.zip: Remove declarations with expired deprecations
2022-02-15 14:54:28 +01:00
Iain Buclaw
11688c2624
etc.c.odbc: Update removal dates for ODBC deprecations
2022-02-15 14:45:45 +01:00
dkorpel
1e30d05a3f
Fix issue 22771 - BigInt divMod can return "-0" (negative zero)
2022-02-14 23:34:34 +00:00
Martin Nowak
51959e7f40
Merge remote-tracking branch 'upstream/master' into stable
2022-02-14 10:11:14 +01:00
The Dlang Bot
2629671c15
Merge pull request #8378 from ibuclaw/merge_stable
...
Merge branch 'stable' into merge_stable
Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2022-02-12 01:27:37 +00:00
Iain Buclaw
68ae00efbc
Merge branch 'stable' into merge_stable
2022-02-11 22:11:48 +01:00