Skip to content

Commit f9bbe4d

Browse files
committed
Rewrite the pattern matching code in trans.
The old code was not well structured, difficult to understand, and buggy. The new implementation is completely naive, so there may be a slight runtime performance loss. That said, adding optimizations on top of a clear and correct implementation seems easier than trying to fix the old mess. Fixes issue rust-lang#19064. Fixes issue rust-lang#26989. Fixes issue rust-lang#26251. Fixes issue rust-lang#18060. Fixes issue rust-lang#24875. Fixes issue rust-lang#23311. Fixes issue rust-lang#20046.
1 parent 6800538 commit f9bbe4d

14 files changed

+558
-1076
lines changed

src/librustc_trans/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#![feature(box_syntax)]
3030
#![feature(const_fn)]
3131
#![feature(iter_cmp)]
32-
#![feature(iter_arith)]
3332
#![feature(libc)]
3433
#![feature(path_ext)]
3534
#![feature(path_ext)]

0 commit comments

Comments
 (0)