mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Rollup merge of #111037 - Nilstrieb:close-the-offsetof, r=compiler-errors
Close parentheses for `offset_of` in AST pretty printing HIR pretty printing already handles it correctly. This will conflict with #110694 but it seems like that PR is gonna take bit more time.
This commit is contained in:
commit
9de14d894b
@ -566,7 +566,7 @@ impl<'a> State<'a> {
|
||||
self.print_ident(field);
|
||||
}
|
||||
}
|
||||
|
||||
self.pclose();
|
||||
self.end();
|
||||
}
|
||||
ast::ExprKind::MacCall(m) => self.print_mac(m),
|
||||
|
4
tests/pretty/offset_of.rs
Normal file
4
tests/pretty/offset_of.rs
Normal file
@ -0,0 +1,4 @@
|
||||
// pp-exact
|
||||
#![feature(offset_of)]
|
||||
|
||||
fn main() { std::mem::offset_of!(std :: ops :: Range < usize >, end); }
|
Loading…
Reference in New Issue
Block a user