diff options
| author | bors <bors@rust-lang.org> | 2018-10-04 11:39:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-10-04 11:39:50 +0000 |
| commit | 5472b0718f286266ab89acdf234c3552de7e973c (patch) | |
| tree | b458942ff0b20b422c1b3d9f288308ddd9d2e1bb /src/libsyntax | |
| parent | 8a0e5cbf124cea5254bb09111cae6af1b86b21e4 (diff) | |
| parent | 71aded852f42fa05d95f31e549b289eea591533c (diff) | |
| download | rust-5472b0718f286266ab89acdf234c3552de7e973c.tar.gz rust-5472b0718f286266ab89acdf234c3552de7e973c.zip | |
Auto merge of #54809 - pietroalbini:rollup, r=pietroalbini
Rollup of 10 pull requests Successful merges: - #53523 (Add doc for impl From for Std Error) - #54746 (simplify some unused lints code) - #54761 (Make spec_extend use for_each()) - #54769 (Fix typo in CONTRIBUTING.md) - #54773 (Update a FIXME in memory.rs) - #54777 (abolish ICE when pretty-printing async block) - #54780 (Remove duplicate predicates in `explicit_predicates_of`) - #54788 (A handful of cleanups for rustc/mir) - #54789 (Introduce `TyKind::UnnormalizedProjection`) - #54795 (remove padding from multiline format string label) Failed merges: r? @ghost
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index f2acdb3f469..83a05921510 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -2228,6 +2228,9 @@ impl<'a> State<'a> { self.word_nbsp("async")?; self.print_capture_clause(capture_clause)?; self.s.space()?; + // cbox/ibox in analogy to the `ExprKind::Block` arm above + self.cbox(INDENT_UNIT)?; + self.ibox(0)?; self.print_block_with_attrs(blk, attrs)?; } ast::ExprKind::Assign(ref lhs, ref rhs) => { |
