Improve code reuse between trans/_match.rs and check_match.rs

The specialization logic for patterns is really the same in both
exhaustiveness/reachability checking and codegen.
This commit is contained in:
Jakub Wieczorek 2014-06-21 14:56:23 +02:00
parent e6c54a12c4
commit 6b6edf4702
4 changed files with 112 additions and 508 deletions

View file

@ -2155,8 +2155,6 @@ These are functions:
* `str_eq`
: Compare two strings (`&str`) for equality.
* `uniq_str_eq`
: Compare two owned strings (`String`) for equality.
* `strdup_uniq`
: Return a new unique string
containing a copy of the contents of a unique string.