librustc: Remove all uses of `~str` from librustc.
auto merge of #14079 : pcwalton/rust/detildestr, r=alexcrichton

r? @alexcrichton