]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
Auto merge of #80295 - GuillaumeGomez:beautify-rework, r=petrochenkov
authorbors <bors@rust-lang.org>
Thu, 24 Dec 2020 11:30:24 +0000 (11:30 +0000)
committerbors <bors@rust-lang.org>
Thu, 24 Dec 2020 11:30:24 +0000 (11:30 +0000)
commit2acf6ee6d2ab3acf3f4d2117591ac1143c8232fe
tree65b8f8eb157cb2c6125019027b172e2f33a8f866
parentc34c015fe2710caf53ba7ae9d1644f9ba65a6f74
parent64afdedfb87d471dcf1b757cea5f4b0b570176c1
Auto merge of #80295 - GuillaumeGomez:beautify-rework, r=petrochenkov

Rework beautify_doc_string so that it returns a Symbol instead of a String

This commit comes from https://github.com/rust-lang/rust/pull/80261, the goal here is to inspect the impact on performance of this change on its own.

The idea of rewriting `beautify_doc_string` is to not go through `String` if we don't need to update the doc comment to be able to keep the original `Symbol` and also to have better performance.

r? `@jyn514`
src/librustdoc/clean/types.rs