Update tests; fix link check

This commit is contained in:
Nick Treleaven 2024-03-29 14:35:23 +00:00
parent fb492bfa8d
commit 6b5d7bb0c2
3 changed files with 16 additions and 16 deletions

View file

@ -1046,7 +1046,7 @@ struct CLIUsage
buf ~= t.helpText;
if (t.deprecated_)
buf ~= " [DEPRECATED]";
if (t.link)
if (t.link.length)
buf ~= " (" ~ t.link ~ ")";
buf ~= "\n";
}

View file

@ -5,18 +5,18 @@ TEST_OUTPUT:
----
Upcoming language changes listed by -preview=name:
=all Enables all available upcoming language changes
=dip25 implement https://github.com/dlang/DIPs/blob/master/DIPs/archive/DIP25.md (Sealed references) [DEPRECATED]
=dip1000 implement https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1000.md (Scoped Pointers)
=dip1008 implement https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1008.md (@nogc Throwable)
=dip1021 implement https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1021.md (Mutable function arguments)
=bitfields add bitfields https://github.com/dlang/dlang.org/pull/3190
=fieldwise use fieldwise comparisons for struct equality
=fixAliasThis when a symbol is resolved, check alias this scope before going to upper scopes
=rvaluerefparam enable rvalue arguments to ref parameters
=nosharedaccess disable access to shared memory objects
=in `in` on parameters means `scope const [ref]` and accepts rvalues
=inclusiveincontracts 'in' contracts of overridden methods must be a superset of parent contract
=fixImmutableConv disallow unsound immutable conversions that were formerly incorrectly permitted
=systemVariables disable access to variables marked '@system' from @safe code
=dip25 implement Sealed References DIP [DEPRECATED] (https://github.com/dlang/DIPs/blob/master/DIPs/archive/DIP25.md)
=dip1000 implement Scoped Pointers DIP (https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1000.md)
=dip1008 implement @nogc Throwable DIP (https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1008.md)
=dip1021 implement Mutable Function Arguments DIP (https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1021.md)
=bitfields add C-like bitfields (https://github.com/dlang/dlang.org/pull/3190)
=fieldwise use fieldwise comparisons for struct equality (https://dlang.org/changelog/2.085.0.html#no-cmpsb)
=fixAliasThis when a symbol is resolved, check alias this scope before going to upper scopes (https://github.com/dlang/dmd/pull/8885)
=rvaluerefparam enable rvalue arguments to ref parameters (https://github.com/dlang/DIPs/blob/master/DIPs/rejected/DIP1016.md)
=nosharedaccess disable access to shared memory objects (https://dlang.org/spec/const3.html#shared)
=in `in` on parameters means `scope const [ref]` and accepts rvalues (https://dlang.org/spec/function.html#in-params)
=inclusiveincontracts 'in' contracts of overridden methods must be a superset of parent contract (https://dlang.org/changelog/2.095.0.html#inclusive-incontracts)
=fixImmutableConv disallow functions with a mutable `void[]` parameter to be strongly pure (https://dlang.org/changelog/2.101.0.html#dmd.fix-immutable-conv)
=systemVariables disable access to variables marked '@system' from @safe code (https://dlang.org/spec/attribute.html#system-variables)
----
*/

View file

@ -5,8 +5,8 @@ TEST_OUTPUT:
----
Revertable language changes listed by -revert=name:
=all Enables all available revertable language changes
=dip25 revert DIP25 changes https://github.com/dlang/DIPs/blob/master/DIPs/archive/DIP25.md [DEPRECATED]
=dip1000 revert DIP1000 changes https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1000.md (Scoped Pointers)
=dip25 revert DIP25 changes [DEPRECATED] (https://github.com/dlang/DIPs/blob/master/DIPs/archive/DIP25.md)
=dip1000 revert DIP1000 changes (Scoped Pointers) (https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1000.md)
=intpromote revert integral promotions for unary + - ~ operators
=dtorfields don't destruct fields of partially constructed objects
----