Maybe [bug6333](http://d.puremagic.com/issues/show_bug.cgi?id=6333)? Today object.capacity function is marked with `pure` `nothrow`, but it's still un`@safe`.