Skip to content

Commit

Permalink
Waiting for @nogc attributes in druntime.
Browse files Browse the repository at this point in the history
See dlang/druntime#887.
Also 'core.sys.posix.sys.stat.lstat' isn't `@nogc`.
  • Loading branch information
denis-sh committed Jul 14, 2014
1 parent 530f512 commit 382c8ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion std/file.d
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ unittest
/++
Returns whether the given file (or directory) exists.
+/
bool exists(in char[] name) @trusted nothrow @nogc
bool exists(in char[] name) @trusted nothrow // @nogc // 'core.sys.posix.sys.stat.lstat' isn't `@nogc`
{
version(Windows)
{
Expand Down
5 changes: 4 additions & 1 deletion std/internal/cstring.d
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ module std.internal.cstring;


static import core.stdc.stdlib;
import core.exception;
// import core.exception; // Waiting druntime pull #887

import std.traits;
import std.utf;


// Waiting druntime pull #887:
extern(C) void onOutOfMemoryError(void* pretend_sideffect = null) @trusted pure nothrow @nogc /* dmd @@@BUG11461@@@ */;

version(unittest)
@property inout(C)[] asArray(C)(inout C* cstr) pure nothrow @nogc
if(isSomeChar!C)
Expand Down

0 comments on commit 382c8ec

Please sign in to comment.