about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-04-30 23:29:40 +0200
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-04-30 23:29:40 +0200
commit0dbea7ad549021a6b99aeafcdcdc8af89134d545 (patch)
treeecdd2653182fc09ec4e78661bc7014b0154eb536 /compiler
parentf2eb9f85b9b52e6538c3c7fc160725963272d471 (diff)
downloadrust-0dbea7ad549021a6b99aeafcdcdc8af89134d545.tar.gz
rust-0dbea7ad549021a6b99aeafcdcdc8af89134d545.zip
Close parentheses for `offset_of` in AST pretty printing
HIR pretty printing already handles it correctly.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_ast_pretty/src/pprust/state/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_pretty/src/pprust/state/expr.rs b/compiler/rustc_ast_pretty/src/pprust/state/expr.rs
index aeb0c762020..defd671989c 100644
--- a/compiler/rustc_ast_pretty/src/pprust/state/expr.rs
+++ b/compiler/rustc_ast_pretty/src/pprust/state/expr.rs
@@ -566,7 +566,7 @@ impl<'a> State<'a> {
                         self.print_ident(field);
                     }
                 }
-
+                self.pclose();
                 self.end();
             }
             ast::ExprKind::MacCall(m) => self.print_mac(m),