nick29581/rust — pull request #2 by pelmers (2014-02-03 05:09:42+00:00)
Title: Use collected_paths for enum and struct patterns

A bit of refactoring lets us use collected_paths for enum and struct patterns. Basically we store another element in the tuple telling the kind of reference it is, since regular variants are `var_ref` and structs use `struct_ref.`