提交 0f09021b 编写于 作者: G GuillaumeGomez

librustc_borrowck has been updated

上级 664c41b4
......@@ -907,7 +907,7 @@ pub fn append_loan_path_to_string(&self,
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 @@ pub fn append_loan_path_to_string(&self,
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('.');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册