mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
Fix double space in pretty printed TryBlock
This commit is contained in:
parent
2b67c30bfe
commit
2f25a4ab30
@ -2239,7 +2239,6 @@ impl<'a> State<'a> {
|
||||
}
|
||||
ast::ExprKind::TryBlock(ref blk) => {
|
||||
self.head("try");
|
||||
self.space();
|
||||
self.print_block_with_attrs(blk, attrs)
|
||||
}
|
||||
ast::ExprKind::Err => {
|
||||
|
@ -256,7 +256,7 @@ fn test_expr() {
|
||||
assert_eq!(stringify_expr!(expr.await), "expr.await");
|
||||
|
||||
// ExprKind::TryBlock
|
||||
assert_eq!(stringify_expr!(try {}), "try {}"); // FIXME
|
||||
assert_eq!(stringify_expr!(try {}), "try {}");
|
||||
|
||||
// ExprKind::Assign
|
||||
assert_eq!(stringify_expr!(expr = true), "expr = true");
|
||||
|
Loading…
Reference in New Issue
Block a user