Skip to content

Commit 0f09021

Browse files
librustc_borrowck has been updated
1 parent 664c41b commit 0f09021

File tree

1 file changed

+2
-2
lines changed
  • src/librustc_borrowck/borrowck

1 file changed

+2
-2
lines changed

src/librustc_borrowck/borrowck/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx> {
907907
match loan_path.kind {
908908
LpUpvar(ty::UpvarId{ var_id: id, closure_expr_id: _ }) |
909909
LpVar(id) => {
910-
out.push_str(ty::local_var_name_str(self.tcx, id).get());
910+
out.push_str(&ty::local_var_name_str(self.tcx, id)[]);
911911
}
912912

913913
LpDowncast(ref lp_base, variant_def_id) => {
@@ -924,7 +924,7 @@ impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx> {
924924
match fname {
925925
mc::NamedField(fname) => {
926926
out.push('.');
927-
out.push_str(token::get_name(fname).get());
927+
out.push_str(&token::get_name(fname)[]);
928928
}
929929
mc::PositionalField(idx) => {
930930
out.push('.');

0 commit comments

Comments
 (0)