Skip to content

Commit

Permalink
Rollup merge of rust-lang#82022 - LingMan:single_char, r=jonas-schievink
Browse files Browse the repository at this point in the history
Push a `char` instead of a `str` with len one into a String

`@rustbot` modify labels +C-cleanup +T-compiler
  • Loading branch information
Dylan-DPC authored Feb 12, 2021
2 parents 172adb4 + fda71d6 commit a88ae80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_typeck/src/check/upvar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ fn construct_place_string(tcx: TyCtxt<'_>, place: &Place<'tcx>) -> String {
ProjectionKind::Subslice => String::from("Subslice"),
};
if i != 0 {
projections_str.push_str(",");
projections_str.push(',');
}
projections_str.push_str(proj.as_str());
}
Expand Down

0 comments on commit a88ae80

Please sign in to comment.