mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
Close parentheses for offset_of in AST pretty printing
HIR pretty printing already handles it correctly.
This commit is contained in:
@@ -566,7 +566,7 @@ pub(super) fn print_expr_outer_attr_style(&mut self, expr: &ast::Expr, is_inline
|
||||
self.print_ident(field);
|
||||
}
|
||||
}
|
||||
|
||||
self.pclose();
|
||||
self.end();
|
||||
}
|
||||
ast::ExprKind::MacCall(m) => self.print_mac(m),
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
// pp-exact
|
||||
#![feature(offset_of)]
|
||||
|
||||
fn main() { std::mem::offset_of!(std :: ops :: Range < usize >, end); }
|
||||
Reference in New Issue
Block a user