提交 78835431 编写于 作者: C comex

Print attributes on expressions when pretty printing.

上级 8f62c292
......@@ -1210,6 +1210,7 @@ fn print_expr_addr_of(&mut self,
pub fn print_expr(&mut self, expr: &hir::Expr) -> io::Result<()> {
self.maybe_print_comment(expr.span.lo)?;
self.print_outer_attributes(&expr.attrs)?;
self.ibox(indent_unit)?;
self.ann.pre(self, NodeExpr(expr))?;
match expr.node {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册