From 6384eff56dba1fac071c1b525f7e49cf03f2737f Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Sun, 20 Feb 2022 20:02:23 +0100 Subject: d: Merge upstream dmd cb49e99f8, druntime 55528bd1, phobos 1a3e80ec2. D front-end changes: - Import dmd v2.099.0-beta.1. - It's now an error to use `alias this' for partial assignment. - The `delete' keyword has been removed from the language. - Using `this' and `super' as types has been removed from the language, the parser no longer specially handles this wrong code with an informative error. D Runtime changes: - Import druntime v2.099.0-beta.1. Phobos changes: - Import phobos v2.099.0-beta.1. gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd cb49e99f8. * dmd/VERSION: Update version to v2.099.0-beta.1. * decl.cc (layout_class_initializer): Update call to NewExp::create. * expr.cc (ExprVisitor::visit (DeleteExp *)): Remove handling of deleting arrays and pointers. (ExprVisitor::visit (DotVarExp *)): Convert complex types to the front-end library type representing them. (ExprVisitor::visit (StringExp *)): Use getCodeUnit instead of charAt to get the value of each index in a string expression. * runtime.def (DELMEMORY): Remove. (DELARRAYT): Remove. * types.cc (TypeVisitor::visit (TypeEnum *)): Handle anonymous enums. libphobos/ChangeLog: * libdruntime/MERGE: Merge upstream druntime 55528bd1. * src/MERGE: Merge upstream phobos 1a3e80ec2. * testsuite/libphobos.hash/test_hash.d: Update. * testsuite/libphobos.betterc/test19933.d: New test. --- libphobos/src/std/uni/package.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libphobos/src/std/uni') diff --git a/libphobos/src/std/uni/package.d b/libphobos/src/std/uni/package.d index 192b6fd..9780b1b 100644 --- a/libphobos/src/std/uni/package.d +++ b/libphobos/src/std/uni/package.d @@ -5363,7 +5363,7 @@ pure @safe unittest pure @safe unittest { import std.range : stride; - static bool testAll(Matcher, Range)(scope ref Matcher m, ref Range r) + static bool testAll(Matcher, Range)(ref Matcher m, ref Range r) @safe { bool t = m.test(r); auto save = r.idx; -- cgit v1.1