Skip to content

Commit 681f0c7

Browse files
committed
Support printing globs.
1 parent ae16639 commit 681f0c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/comp/pretty/pprust.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,16 @@ fn print_view_item(&ps s, &@ast::view_item item) {
10111011
word(s.s, elt);
10121012
}
10131013
}
1014+
case (ast::view_item_import_glob(?ids,_)) {
1015+
head(s, "import");
1016+
auto first = true;
1017+
for (str elt in ids) {
1018+
if (first) {first = false;}
1019+
else {word(s.s, "::");}
1020+
word(s.s, elt);
1021+
}
1022+
word(s.s, "::*");
1023+
}
10141024
case (ast::view_item_export(?id)) {
10151025
head(s, "export");
10161026
word(s.s, id);

0 commit comments

Comments
 (0)