Skip to content

Commit 7883543

Browse files
committed
Print attributes on expressions when pretty printing.
1 parent 8f62c29 commit 7883543

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc/hir/print.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,7 @@ impl<'a> State<'a> {
12101210

12111211
pub fn print_expr(&mut self, expr: &hir::Expr) -> io::Result<()> {
12121212
self.maybe_print_comment(expr.span.lo)?;
1213+
self.print_outer_attributes(&expr.attrs)?;
12131214
self.ibox(indent_unit)?;
12141215
self.ann.pre(self, NodeExpr(expr))?;
12151216
match expr.node {

0 commit comments

Comments
 (0)