Support 'alt check' syntax

It is only a way to flag an alt as intentionally non-exhaustive right now.

Issue #1679
This commit is contained in:
Marijn Haverbeke 2012-02-15 09:35:11 +01:00
parent 9f95ccb426
commit 6627890f6b
14 changed files with 29 additions and 29 deletions

View file

@ -293,7 +293,7 @@ impl ast_output for ast_ctxt {
}
}
ast::expr_alt(cond, arms) {
ast::expr_alt(cond, arms, _) {
self.tag(at_expr_node_alt) {||
self.blk(blk);
self.expr(cond);