From 260b1312229c39e6a1a47e5850c7aeb760dccbb2 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 24 Aug 2025 13:01:12 +0200 Subject: Remove meta.transform duplicating Phobos --- test/tanya/test/stub.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/tanya/test/stub.d b/test/tanya/test/stub.d index a83cf01..fca2d96 100644 --- a/test/tanya/test/stub.d +++ b/test/tanya/test/stub.d @@ -90,8 +90,8 @@ struct WithLvalueElements */ mixin template InputRangeStub(E = int) { + import std.traits : hasUDA, getUDAs; import tanya.meta.metafunction : Alias; - import tanya.meta.trait : evalUDA, getUDAs, hasUDA; /* * Aliases for the attribute lookups to access them faster @@ -113,7 +113,7 @@ mixin template InputRangeStub(E = int) } else static if (Length.length != 0) { - private enum size_t count = evalUDA!(Length[0]).length; + private enum size_t count = Length[0]().length; static assert (!infinite, "Range cannot have length and be infinite at the same time"); @@ -372,7 +372,7 @@ struct Hashable */ mixin template StructStub() { - import tanya.meta.trait : evalUDA, getUDAs, hasUDA; + import std.traits : hasUDA, getUDAs; static if (hasUDA!(typeof(this), NonCopyable)) { @@ -384,7 +384,7 @@ mixin template StructStub() { size_t toHash() const @nogc nothrow pure @safe { - return evalUDA!(Hashable[0]).hash; + return Hashable[0]().hash; } } -- cgit v1.2.3