rustc: Fix segfault due to nonexhaustive match when using tags

This commit is contained in:
Patrick Walton 2010-12-01 10:53:40 -08:00
parent 42282a25c0
commit 67a616340d

View file

@ -434,6 +434,9 @@ fn collect_item_types(@ast.crate crate) -> tup(@ast.crate, @ty_table) {
case (ast.item_mod(_, _, _)) {
result = it.node;
}
case (ast.item_tag(_, _, _, _)) {
result = it.node;
}
}
items_t += vec(@fold.respan[ast.item_](it.span, result));
}