librustc: Remove all uses of `~str` from librustc.

r? @alexcrichton