Skip to content

Commit

Permalink
Push a char instead of a str with len one into a String
Browse files Browse the repository at this point in the history
  • Loading branch information
LingMan committed Feb 12, 2021
1 parent e9920ef commit fda71d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_typeck/src/check/upvar.rs
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 fda71d6

Please sign in to comment.