diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-02-12 22:53:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-12 22:53:36 +0100 |
| commit | ef7c45aa70c6298c35bef3ce7a526a4cf54d9e8e (patch) | |
| tree | 7da519a1df71fd127c861e399cd87ce3ef430a3d | |
| parent | b67be3aa6b8101c63f7d31e80741c7bc78f0cb49 (diff) | |
| parent | fda71d676d07415f78c7835a6fa67b6aacb62c97 (diff) | |
| download | rust-ef7c45aa70c6298c35bef3ce7a526a4cf54d9e8e.tar.gz rust-ef7c45aa70c6298c35bef3ce7a526a4cf54d9e8e.zip | |
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
| -rw-r--r-- | compiler/rustc_typeck/src/check/upvar.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_typeck/src/check/upvar.rs b/compiler/rustc_typeck/src/check/upvar.rs index 04a9e65e664..4f90f2877ed 100644 --- a/compiler/rustc_typeck/src/check/upvar.rs +++ b/compiler/rustc_typeck/src/check/upvar.rs @@ -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()); } |
