Rollup merge of #76567 - matthiaskrgr:clone_on_copy, r=varkor

use push(char) to add chars (single-char &strs) to strings instead of push_str(&str)
This commit is contained in:
Tyler Mandry
2020-09-10 12:20:12 -07:00
committed by GitHub
13 changed files with 33 additions and 31 deletions

View File

@@ -353,7 +353,7 @@ impl<'a, 'tcx> Instrumentor<'a, 'tcx> {
if !INCLUDE_COVERAGE_STATEMENTS {
continue;
}
format!("unreachable")
String::from("unreachable")
}
},
_ => format!("{:?}", statement),