rust/src/librustc_trans
Felix S. Klock II 09d67fd777 Track what drop obligations are established on match arms.
This is accomplished by:

1. Add `MatchMode` enum to `expr_use_visitor`.

2. Computing the match mode for each pattern via a pre-pass, and then
   passing the mode along when visiting the pattern in
   expr_use_visitor.

3. Adding a `fn matched_pat` callback to expr_use_visitor, which is
   called on interior struct and enum nodes of the pattern (as opposed
   to `fn consume_pat`, which is only invoked for identifiers at the
   leaves of the pattern), and invoking it accordingly.

Of particular interest are the `cat_downcast` instances established
when matching enum variants.
2014-11-25 15:26:16 +01:00
..
back unicode: Rename is_XID_start to is_xid_start, is_XID_continue to is_xid_continue 2014-11-21 13:18:08 -08:00
driver Remove libnative 2014-11-20 17:19:13 -08:00
save rollup merge of #19230: nick29581/dxr-values 2014-11-23 14:11:59 -05:00
trans Track what drop obligations are established on match arms. 2014-11-25 15:26:16 +01:00
lib.rs removed usage of struct_variant feature as it is no longer gated 2014-11-20 00:21:32 +01:00
README.txt
test.rs Refactored new CodeExtent type for improved abstraction. 2014-11-20 13:10:03 +01:00

See the README.txt in ../librustc.