librustc: Implement "&mut [T]" as an expression. r=brson

This commit is contained in:
Patrick Walton
2012-12-07 16:26:52 -08:00
parent 87f3ea7705
commit ab3b752906
8 changed files with 23 additions and 6 deletions

View File

@@ -1052,6 +1052,10 @@ fn print_expr_vstore(s: ps, t: ast::expr_vstore) {
word(s.s, ~"mut");
}
ast::expr_vstore_slice => word(s.s, ~"&"),
ast::expr_vstore_mut_slice => {
word(s.s, ~"&");
word(s.s, ~"mut");
}
}
}