Add pure nothrow and @nogc annotations