D-Programming-Language/phobos — pull request #2005 by tom-tan (2014-03-13 05:53:31+00:00)
Title: Mark std.string.toStringz as @trusted

`toStringz(const(char)[])` uses system functions `core.stdc.string.strlen`, `core.stdc.string.memcmp`. `toStringz(string)` uses a system function `std.exception.assumeUnique`.
But in both cases, we can verify that they can be trusted.

I also mark a unittest for them as `pure nothrow`.