librustc: Remove some string allocations. rs=perf