Skip to content

Commit 27ef41e

Browse files
committed
upstream cant even go long without breaking their own code
1 parent 224240d commit 27ef41e

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

compiler/src/dmd/cppmangle.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2175,7 +2175,7 @@ private extern(C++) final class ComponentVisitor : Visitor
21752175
/// Set to the result of the comparison
21762176
private bool result;
21772177

2178-
public this(RootObject base) @safe
2178+
public this(RootObject base) @trusted
21792179
{
21802180
switch (base.dyncast())
21812181
{

compiler/src/dmd/doc.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2608,7 +2608,7 @@ bool isKeyword(const(char)[] str) @safe
26082608

26092609
/****************************************************
26102610
*/
2611-
TypeFunction isTypeFunction(Dsymbol s) @safe
2611+
TypeFunction isTypeFunction(Dsymbol s) @trusted
26122612
{
26132613
FuncDeclaration f = s.isFuncDeclaration();
26142614
/* f.type may be NULL for template members.

compiler/src/dmd/dtemplate.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private enum LOG = false;
8686

8787
enum IDX_NOTFOUND = 0x12345678;
8888

89-
pure nothrow @nogc @safe
89+
pure nothrow @nogc @trusted
9090
{
9191

9292
/********************************************

compiler/src/dmd/expression.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ extern (C++) /* IN_LLVM abstract */ class Expression : ASTNode
460460
* is returned via e0.
461461
* Otherwise 'e' is directly returned and e0 is set to NULL.
462462
*/
463-
extern (D) static Expression extractLast(Expression e, out Expression e0) @safe
463+
extern (D) static Expression extractLast(Expression e, out Expression e0) @trusted
464464
{
465465
if (e.op != EXP.comma)
466466
{
@@ -762,7 +762,7 @@ version (IN_LLVM)
762762
return true;
763763
}
764764

765-
final pure inout nothrow @nogc @safe
765+
final pure inout nothrow @nogc @trusted
766766
{
767767
inout(IntegerExp) isIntegerExp() { return op == EXP.int64 ? cast(typeof(return))this : null; }
768768
inout(ErrorExp) isErrorExp() { return op == EXP.error ? cast(typeof(return))this : null; }
@@ -3925,7 +3925,7 @@ extern (C++) final class VectorExp : UnaExp
39253925
uint dim = ~0; // number of elements in the vector
39263926
OwnedBy ownedByCtfe = OwnedBy.code;
39273927

3928-
extern (D) this(const ref Loc loc, Expression e, Type t) @safe
3928+
extern (D) this(const ref Loc loc, Expression e, Type t) @trusted
39293929
{
39303930
super(loc, EXP.vector, e);
39313931
assert(t.ty == Tvector);

compiler/src/dmd/mtype.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2465,7 +2465,7 @@ version (IN_LLVM)
24652465
}
24662466
}
24672467

2468-
final pure inout nothrow @nogc @safe
2468+
final pure inout nothrow @nogc @trusted
24692469
{
24702470
inout(TypeError) isTypeError() { return ty == Terror ? cast(typeof(return))this : null; }
24712471
inout(TypeVector) isTypeVector() { return ty == Tvector ? cast(typeof(return))this : null; }

compiler/src/dmd/statement.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ version (IN_LLVM)
273273
inout(CompoundAsmStatement) endsWithAsm() inout { return null; }
274274
}
275275

276-
final pure inout nothrow @nogc @safe:
276+
final pure inout nothrow @nogc @trusted:
277277

278278
/********************
279279
* A cheaper method of doing downcasting of Statements.

0 commit comments

Comments
 (0)