diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2011-06-01 11:08:44 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-06-01 11:39:20 -0700 |
| commit | 681f0c7a2b2f83b34f9c0f22ca8e109b047df13a (patch) | |
| tree | 94571afd40cea9591520e00765ecb38a48b680d0 /src/comp | |
| parent | ae16639dfa09a3ec06f7abe1bdc22e8f3e5d28c9 (diff) | |
| download | rust-681f0c7a2b2f83b34f9c0f22ca8e109b047df13a.tar.gz rust-681f0c7a2b2f83b34f9c0f22ca8e109b047df13a.zip | |
Support printing globs.
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/pretty/pprust.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs index 44a3489d29b..330c1c65302 100644 --- a/src/comp/pretty/pprust.rs +++ b/src/comp/pretty/pprust.rs @@ -1011,6 +1011,16 @@ fn print_view_item(&ps s, &@ast::view_item item) { word(s.s, elt); } } + case (ast::view_item_import_glob(?ids,_)) { + head(s, "import"); + auto first = true; + for (str elt in ids) { + if (first) {first = false;} + else {word(s.s, "::");} + word(s.s, elt); + } + word(s.s, "::*"); + } case (ast::view_item_export(?id)) { head(s, "export"); word(s.s, id); |
