syntax: convert LitBinary from @[u8] to Rc<~[u8]>.

This commit is contained in:
Huon Wilson
2014-02-01 15:54:41 +11:00
parent b972cadf61
commit 891ada9be1
5 changed files with 8 additions and 9 deletions

View File

@@ -2212,10 +2212,10 @@ pub fn print_literal(s: &mut State, lit: &ast::Lit) {
ast::LitBool(val) => {
if val { word(&mut s.s, "true"); } else { word(&mut s.s, "false"); }
}
ast::LitBinary(arr) => {
ast::LitBinary(ref arr) => {
ibox(s, indent_unit);
word(&mut s.s, "[");
commasep_cmnt(s, Inconsistent, arr, |s, u| word(&mut s.s, format!("{}", *u)),
commasep_cmnt(s, Inconsistent, *arr.borrow(), |s, u| word(&mut s.s, format!("{}", *u)),
|_| lit.span);
word(&mut s.s, "]");
end(s);