mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-06 04:06:31 +00:00

Remove unnecessary `to_string` and `String::new`
73fa217bc1
changed the type of the `suggestion` argument to `impl ToString`. This patch removes unnecessary `to_string` and `String::new`.
cc: `````@davidtwco`````
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.