librustdoc: Remove all `~str` usage from librustdoc.