Skip to content

Commit

Permalink
Rewrite the pattern matching code in trans.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eefriedman committed Jul 15, 2015
1 parent 6800538 commit f9bbe4d
Show file tree
Hide file tree
Showing 14 changed files with 558 additions and 1,076 deletions.
1 change: 0 additions & 1 deletion src/librustc_trans/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#![feature(box_syntax)]
#![feature(const_fn)]
#![feature(iter_cmp)]
#![feature(iter_arith)]
#![feature(libc)]
#![feature(path_ext)]
#![feature(path_ext)]
Expand Down
Loading

0 comments on commit f9bbe4d

Please sign in to comment.