Improve memory usage of libsyntax
Replaces some usage of `.to_string()` with `.into_string()`

Signed-off-by: Peter Atashian <retep998@gmail.com>
auto merge of #17223 : retep998/rust/into_string, r=huonw

Replaces some usage of `.to_string()` with `.into_string()`