Revert "Revert "Implement pattern ranges for all numeric types.""
This reverts commit a034f87146
.
Conflicts:
src/comp/middle/check_alt.rs
src/comp/middle/trans_alt.rs
src/comp/syntax/ast.rs
src/comp/syntax/ast_util.rs
src/comp/syntax/fold.rs
src/comp/syntax/print/pprust.rs
Conflicts:
src/comp/middle/trans_alt.rs
This commit is contained in:
parent
5fac684af8
commit
381205b747
14 changed files with 455 additions and 26 deletions
|
@ -70,7 +70,7 @@ iter pat_bindings(pat: @pat) -> @pat {
|
|||
}
|
||||
pat_box(sub) { for each b in pat_bindings(sub) { put b; } }
|
||||
pat_uniq(sub) { for each b in pat_bindings(sub) { put b; } }
|
||||
pat_wild. | pat_lit(_) { }
|
||||
pat_wild. | pat_lit(_) | pat_range(_, _) { }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -230,3 +230,4 @@ fn ret_by_ref(style: ret_style) -> bool {
|
|||
// buffer-file-coding-system: utf-8-unix
|
||||
// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
|
||||
// End:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue