diff options
| author | Patrick Walton <[email protected]> | 2010-12-01 10:53:40 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-12-01 10:53:40 -0800 |
| commit | 67a616340d8e3a3af8cb2524736f824ea640b456 (patch) | |
| tree | cde17f2b57470d2d95dc97b50eb689633c1ce8ac /src/comp | |
| parent | rustc: Resolve tag variant names (diff) | |
| download | rust-67a616340d8e3a3af8cb2524736f824ea640b456.tar.xz rust-67a616340d8e3a3af8cb2524736f824ea640b456.zip | |
rustc: Fix segfault due to nonexhaustive match when using tags
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/middle/typeck.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/comp/middle/typeck.rs b/src/comp/middle/typeck.rs index b34b8b58..f4083494 100644 --- a/src/comp/middle/typeck.rs +++ b/src/comp/middle/typeck.rs @@ -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)); } |