Close parentheses for offset_of
in AST pretty printing
HIR pretty printing already handles it correctly.
This commit is contained in:
parent
f2eb9f85b9
commit
0dbea7ad54
2 changed files with 5 additions and 1 deletions
|
@ -566,7 +566,7 @@ impl<'a> State<'a> {
|
||||||
self.print_ident(field);
|
self.print_ident(field);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
self.pclose();
|
||||||
self.end();
|
self.end();
|
||||||
}
|
}
|
||||||
ast::ExprKind::MacCall(m) => self.print_mac(m),
|
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…
Add table
Add a link
Reference in a new issue