Skip to content

Commit a88ae80

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 172adb4 + fda71d6 commit a88ae80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/check/upvar.rs

Lines changed: 1 addition & 1 deletion
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)