@@ -69,12 +69,6 @@ struct Annotated(T) {
6969 return annotations == rhs.annotations && value == rhs.value;
7070 }
7171
72- // / ditto
73- bool opEquals (ref scope const Annotated rhs) scope const
74- {
75- return annotations == rhs.annotations && value == rhs.value;
76- }
77-
7872 size_t toHash () scope @trusted const pure nothrow @nogc
7973 {
8074 static if (__traits(compiles, hashOf(value)))
@@ -120,12 +114,12 @@ struct Annotated(T) {
120114 this .value = T(forward! args);
121115 }
122116
123- private alias E = .basicElementType! T;
117+ // private alias E = .basicElementType!T;
124118
125119 import std.traits : isAssociativeArray, isAggregateType;
126120 // /
127- int opCmp ()(ref scope const typeof (this ) rhs) scope const pure nothrow @nogc
128- if (! isAssociativeArray! E && (! isAggregateType! E || __traits(hasMember, E, " opCmp" )))
121+ int opCmp ()(scope const typeof (this ) rhs) scope const pure nothrow @nogc @system
122+ // if (!isAssociativeArray!E && (!isAggregateType!E || __traits(hasMember, E, "opCmp")))
129123 {
130124 if (auto d = __cmp(annotations, rhs.annotations))
131125 return d;
@@ -226,12 +220,6 @@ struct AnnotatedOnce(T) {
226220 {
227221 return annotation == rhs.annotation && value == rhs.value;
228222 }
229-
230- // /
231- bool opEquals (ref scope const AnnotatedOnce rhs) scope const
232- {
233- return annotation == rhs.annotation && value == rhs.value;
234- }
235223 }
236224 else
237225 {
@@ -260,12 +248,12 @@ struct AnnotatedOnce(T) {
260248 this .value = T(forward! args);
261249 }
262250
263- private alias E = .basicElementType! T;
251+ // private alias E = .basicElementType!T;
264252
265253 import std.traits : isAssociativeArray, isAggregateType;
266- static if (! isAssociativeArray! E && (! isAggregateType! E || __traits(hasMember, E, " opCmp" )))
254+ // static if (!isAssociativeArray!E && (!isAggregateType!E || __traits(hasMember, E, "opCmp")))
267255 // /
268- int opCmp ()(ref scope const typeof (this ) rhs) scope const @safe pure nothrow @nogc
256+ int opCmp ()(scope const typeof (this ) rhs) scope const @system pure nothrow @nogc
269257 {
270258 if (auto d = __cmp(annotation, rhs.annotation))
271259 return d;
0 commit comments