Commit graph

19307 commits

Author SHA1 Message Date
Jan Jurzitza
a5c3c24b71 std.stdio: clarify "not opened" documentation
when the code is `!isOpen` it now means:
- in exception documentation it's now always saying "not opened" (or similar, it's clear the file is in error state in that case)
- in general documentation it now always says "closed or not yet opened" (to avoid mistaking it with eof)
- in runtime error messages it always says "unopened"
2022-01-10 12:47:47 +00:00
Razvan Nitu
10b9721530
Merge pull request #8356 from WalterBright/fix22660
Comment out randomly failing test in std.experimental.allocator
2022-01-10 13:42:30 +02:00
Walter Bright
374eefefbf Comment out randomly failing test in std.experimental.allocator 2022-01-08 21:14:11 -08:00
MoonlightSentinel
59daf7d3b4 Azure: Replace deprecated vs2017-win2016 image with windows-2019
See https://devblogs.microsoft.com/devops/hosted-pipelines-image-deprecation/#windows
2022-01-08 20:08:16 +00:00
The Dlang Bot
fc3985a200
Merge pull request #8336 from atilaneves/logger
Fix issue 22532 - change default log level to LogLevel.warning

Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Signed-off-by: Steven Schveighoffer <schveiguy@users.noreply.github.com>
Merged-on-behalf-of: Atila Neves <atilaneves@users.noreply.github.com>
2022-01-07 08:32:30 +00:00
Gabriel Dolberg
67c546a828 ✏️ fix typos in docs 2022-01-05 22:09:24 +00:00
João Lourenço
5f1657565f std.variant: Fix incorrectly written unittets
Fix Issue 22648 - [std.variant.Variant] Incorrectly written unittests

Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
2022-01-04 00:42:12 +00:00
Atila Neves
522f953ae1 Add comment saying that the default log level is LogLevel.warning 2022-01-03 18:34:51 +01:00
Atila Neves
230cee2f7d Add to the changelog 2022-01-03 15:14:33 +01:00
Atila Neves
13eff04704 Address review comments 2022-01-03 15:14:33 +01:00
Atila Neves
38a8bcbc04 Fix issue 22532 - change default log level to LogLevel.warning 2022-01-03 15:14:33 +01:00
wolframw
befeb005c9 Fix Issue 21457 - std.functional.partial ignores function overloads 2022-01-03 13:21:35 +00:00
wolframw
4687883231 Fix Issue 18051 - missing enum support in formattedRead/unformatValue 2021-12-31 10:28:04 +00: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
Walter Bright
cdbcde7d54
Merge pull request #8214 from dkorpel/pure-scope-throw
Make `throw` functions compile with dip1000 pure-scope fix
2021-12-23 21:20:10 -08:00
dkorpel
0eb2fb7aaa Make phobos compile with pure-scope fix 2021-12-23 18:52:04 +01:00
Razvan Nitu
0411974508
Merge pull request #8342 from WalterBright/uniscope
add some scope to std.uni.package
2021-12-23 18:52:45 +02:00
Razvan Nitu
3d9dce5dbd
Merge pull request #8341 from WalterBright/scopeput
put scope on std.utf.encode() functions
2021-12-23 18:52:24 +02:00
Walter Bright
e9a35fd9c9 add scome scope to std.uni.package 2021-12-23 01:43:14 -08:00
Walter Bright
d23bd5be73 try putting scope on put() parameter 2021-12-23 01:10:56 -08:00
wolframw
cab079a276 sumtype: remove redundant "See Also" in tryMatch documentation 2021-12-22 21:24:30 +00:00
Per Nordlöw
495e835c2d Add unittest for issue 22609 2021-12-20 00:36:36 +00:00
Paul Backus
e862f06eaf Fix issue 22608 - RandomAccessInfinite is not a valid random-access range
Previously, isInfinite!(RandomAccessInfinite!T) would always evaluate to
false, because the 'empty' method inherited from InputRange could not be
evaluated at compile time. Since isRandomAccessRange!R requires
(isBidirectionalRange!R || isInfinite!R), this meant that
RandomAccessInfinite!T was not recognized as a random-access range.
2021-12-19 02:48:10 +00:00
Eduard Staniloiu
95d47777f9 Fix typecons Proxy.opCmp 2021-12-17 17:13:48 +00:00
Iain Buclaw
002ebadd0c zlib: Synchronize testsuite with 1.2.11
Moves all test and documentation files to the location where they are
present in upstream zlib sources.  The build files have also been tested
and fixed on Linux.  Because they are all similiar, these fixes have
also been mirrored into the macOS and Windows build files too.
2021-12-16 04:23:10 +00:00
Atila Neves
575b67a9b4 Ignore SECURITY file when listing timezones
On Arch Linux, there's an ASCII file in /usr/share/zoneinfo with
instructions on how to submit security bug reports, as can be
seen in the listing here:
https://archlinux.org/packages/core/x86_64/tzdata/files/
2021-12-13 19:17:33 +00:00
The Dlang Bot
41e4949773
Merge pull request #8332 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-12-13 07:49:25 +00:00
Martin Nowak
c0b9de79e3 Merge remote-tracking branch 'upstream/stable' into merge_stable 2021-12-12 22:38:03 +01:00
Anton Curmanschii
de7ad2282e Fix a potential memory leak, typos
On line 2741, `if (nBytesNeeded < maxStack)` will force memory allocation in the case when `nBytesNeeded == maxStack` , even though it's not technically required, because the stack buffer can hold those bytes.
On line 2762 though, the check `if (nBytesNeeded > maxStack)` is slightly wrong then. If `nBytesNeeded == maxStack`, it would cause a memory leak.
The fix is to not allocate if they're equal.
2021-12-12 05:39:12 +00:00
João Lourenço
f25b3fc78e
Issue 22582 - [std.algorithm.count] predicate does not implicitly convert to bool (#8330)
Issue 22582 - [std.algorithm.count] predicate does not implicitly convert to bool

Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2021-12-10 15:16:45 +00:00
Razvan Nitu
6ce7a5f06f
Merge pull request #8317 from DoctorNoobingstoneIPresume/211114_std_regex_Doc_Synopsis_01h
std.regex: Doc: Synopsis: Fix typo&spacing, clarify "letters only" example.
2021-12-10 15:53:59 +02:00
Stanislav Blinov
12329adb67 schwartzSort to use pureMalloc so it's more pure
That way it's only impure for transformations that yield
indirections, and that's because (de-)registering memory
ranges with GC is impure.
2021-12-09 07:27:56 +00:00
Razvan Nitu
40aebd4c34
Merge pull request #8326 from FeepingCreature/fix/issue-22561-joiner-allow-reassigning-current-if-immutable
Fix issue 22561: Allow joiner to reassign range values that contain immutable fields.
2021-12-06 22:00:27 +02:00
Mathis Beer
0a228d72a8 Fix issue 22561: Allow joiner to reassign range values that contain immutable fields. 2021-12-03 14:10:32 +01:00
Per Nordlöw
0425866dcd Fix Issue 22557 - std.traits.fqnType is missing support for typeof(null) 2021-12-01 10:29:22 +00:00
Iain Buclaw
7a447e7865 std.random: Fix test for version(X32) targets 2021-11-30 13:25:09 +00:00
Razvan Nitu
82fa590da4
Merge pull request #8322 from dkorpel/explicit-return-scope
Use `return scope` instead of just `return`
2021-11-29 11:32:20 +02:00
DoctorNoobingstoneIPresume
ae900ac6c6 std.regex: Doc: Synopsis: Fix typo&spacing, clarify an example, add another. 2021-11-27 23:21:11 +02:00
dkorpel
ea76f45494 Use return scope instead of just return 2021-11-26 17:03:06 +01:00
dkorpel
5d0cfcd13a Fix scope usage of SysTime/TimeZone 2021-11-18 23:49:51 +00:00
Martin Kinkelin
62780daf85 Prefer __traits(initSymbol) over TypeInfo.initializer() 2021-11-17 05:12:47 +00:00
dkorpel
cd7389266e Add explicit return to inout functions 2021-11-16 23:22:33 +00:00
The Dlang Bot
8ae42e946c
Merge pull request #8318 from omerfirmak/agora-fixes
Merge PR #8315 & #8316 in to `stable`

Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2021-11-15 09:20:00 +00:00
Razvan Nitu
c0a8bd6152
Merge pull request #8316 from omerfirmak/fix22511
Fix Issue 22511 - Add explicit copy ctor for Nullable
2021-11-15 11:13:47 +02:00
Ömer Faruk IRMAK
e84de9faae Fix Issue 22511 - Add explicit copy ctor for Nullable 2021-11-15 11:33:51 +03:00
Ömer Faruk IRMAK
bd090534a4 Add explicit default ctor for DList.PayNode
Worksaround Issue 22510 (https://issues.dlang.org/show_bug.cgi?id=22510)
which prevented us from using structs with explicit copy ctors with DList.
2021-11-15 11:32:16 +03:00
Ömer Faruk IRMAK
b141ae469b Fix Issue 22511 - Add explicit copy ctor for Nullable 2021-11-15 10:33:27 +03:00
Razvan Nitu
79c4c172f7
Merge pull request #8315 from omerfirmak/workaround-22510
Add explicit default ctor for DList.PayNode
2021-11-14 15:14:21 +02:00
Ömer Faruk IRMAK
61d3fe3293 Add explicit default ctor for DList.PayNode
Worksaround Issue 22510 (https://issues.dlang.org/show_bug.cgi?id=22510)
which prevented us from using structs with explicit copy ctors with DList.
2021-11-14 14:50:23 +03:00