Skip to content

Commit ef7c45a

Browse files
authored
Rollup merge of #82022 - LingMan:single_char, r=jonas-schievink
Push a `char` instead of a `str` with len one into a String ``@rustbot`` modify labels +C-cleanup +T-compiler
2 parents b67be3a + fda71d6 commit ef7c45a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/check/upvar.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ fn construct_place_string(tcx: TyCtxt<'_>, place: &Place<'tcx>) -> String {
12111211
ProjectionKind::Subslice => String::from("Subslice"),
12121212
};
12131213
if i != 0 {
1214-
projections_str.push_str(",");
1214+
projections_str.push(',');
12151215
}
12161216
projections_str.push_str(proj.as_str());
12171217
}

0 commit comments

Comments
 (0)