diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-08-31 10:30:32 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-08-31 10:30:32 -0700 |
| commit | 28b1473f8472099260d2b76422e7df49de0e01a1 (patch) | |
| tree | 37e06103c18644c809c3ec023491dc54143fa47a /src/libsyntax | |
| parent | cf386188c88c39902d4ef7f9a6be20379e288f5f (diff) | |
Fix anon-extern-mod pretty print test.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 59e59efe6d7..fcc95865e4d 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -467,10 +467,12 @@ fn print_item(s: ps, &&item: @ast::item) { } ast::item_foreign_mod(nmod) => { head(s, ~"extern"); - word_nbsp(s, ~"mod"); match nmod.sort { - ast::named => print_ident(s, item.ident), - ast::anonymous => {} + ast::named => { + word_nbsp(s, ~"mod"); + print_ident(s, item.ident) + } + ast::anonymous => {} } nbsp(s); bopen(s); |
