Navigation Menu

Skip to content

Commit

Permalink
librustc_borrowck has been updated
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Feb 6, 2015
1 parent 664c41b commit 0f09021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_borrowck/borrowck/mod.rs
Expand Up @@ -907,7 +907,7 @@ impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx> {
match loan_path.kind {
LpUpvar(ty::UpvarId{ var_id: id, closure_expr_id: _ }) |
LpVar(id) => {
out.push_str(ty::local_var_name_str(self.tcx, id).get());
out.push_str(&ty::local_var_name_str(self.tcx, id)[]);
}

LpDowncast(ref lp_base, variant_def_id) => {
Expand All @@ -924,7 +924,7 @@ impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx> {
match fname {
mc::NamedField(fname) => {
out.push('.');
out.push_str(token::get_name(fname).get());
out.push_str(&token::get_name(fname)[]);
}
mc::PositionalField(idx) => {
out.push('.');
Expand Down

0 comments on commit 0f09021

Please sign in to comment.