From 0f09021b376a0cbe18a15a3bb7a5c5201573d4dc Mon Sep 17 00:00:00 2001 From: GuillaumeGomez Date: Wed, 4 Feb 2015 00:11:53 +0100 Subject: [PATCH] librustc_borrowck has been updated --- src/librustc_borrowck/borrowck/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_borrowck/borrowck/mod.rs b/src/librustc_borrowck/borrowck/mod.rs index c932d521bbe1b..03f004ccb671a 100644 --- a/src/librustc_borrowck/borrowck/mod.rs +++ b/src/librustc_borrowck/borrowck/mod.rs @@ -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('.');