librustc_borrowck has been updated

This commit is contained in:
GuillaumeGomez 2015-02-04 00:11:53 +01:00
parent 664c41b427
commit 0f09021b37

@ -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) => {
@ -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('.');