diff options
| author | Tinco Andringa <mail@tinco.nl> | 2018-07-13 23:36:50 +0200 |
|---|---|---|
| committer | Tinco Andringa <mail@tinco.nl> | 2018-09-10 12:33:38 +0200 |
| commit | 23ee94e92b2111a65de9b6269df858a565656ff8 (patch) | |
| tree | 4e34beae8ed82b473df37f8b4e475d7b7ca11735 /src/libsyntax | |
| parent | 81a8ee8fc4822a651aaea722d7920c0f780e9041 (diff) | |
| download | rust-23ee94e92b2111a65de9b6269df858a565656ff8.tar.gz rust-23ee94e92b2111a65de9b6269df858a565656ff8.zip | |
Correctly close indentation blocks when pretty printing non-inline module
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 74ac57a634b..f2acdb3f469 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1268,13 +1268,14 @@ impl<'a> State<'a> { self.print_ident(item.ident)?; if _mod.inline || self.is_expanded { - println!("Going to print inline anyway"); self.nbsp()?; self.bopen()?; self.print_mod(_mod, &item.attrs)?; self.bclose(item.span)?; } else { self.s.word(";")?; + self.end()?; // end inner head-block + self.end()?; // end outer head-block } } |
