Rollup merge of #99103 - TaKO8Ki:avoid-&str-to-string-conversions, r=oli-obk
Avoid some `&str` to `String` conversions This patch removes some `&str` to `String` conversions.
This commit is contained in:
commit
86af7135ae
13 changed files with 23 additions and 34 deletions
|
@ -629,8 +629,7 @@ pub fn debug_hygiene_data(verbose: bool) -> String {
|
|||
if verbose {
|
||||
format!("{:#?}", data)
|
||||
} else {
|
||||
let mut s = String::from("");
|
||||
s.push_str("Expansions:");
|
||||
let mut s = String::from("Expansions:");
|
||||
let mut debug_expn_data = |(id, expn_data): (&ExpnId, &ExpnData)| {
|
||||
s.push_str(&format!(
|
||||
"\n{:?}: parent: {:?}, call_site_ctxt: {:?}, def_site_ctxt: {:?}, kind: {:?}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue