Remove Rc's borrow method to avoid conflicts with RefCell's borrow in Rc<RefCell<T>>.
This commit is contained in:
parent
12b2607572
commit
cdc18b96d6
28 changed files with 59 additions and 76 deletions
|
@ -2291,7 +2291,7 @@ pub fn print_literal(s: &mut State, lit: &ast::Lit) -> io::IoResult<()> {
|
|||
ast::LitBinary(ref arr) => {
|
||||
try!(ibox(s, indent_unit));
|
||||
try!(word(&mut s.s, "["));
|
||||
try!(commasep_cmnt(s, Inconsistent, arr.borrow().as_slice(),
|
||||
try!(commasep_cmnt(s, Inconsistent, arr.deref().as_slice(),
|
||||
|s, u| word(&mut s.s, format!("{}", *u)),
|
||||
|_| lit.span));
|
||||
try!(word(&mut s.s, "]"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue