rust/src/rustc/middle
Tim Chevalier f39477d926 In resolve, check that an or-pattern has the same number of bindings in each disjunct
resolve3 wasn't checking this. Added test cases. Also added a helpful informational
message in the case where you have a variable binding that you probably think
refers to a variant that you forgot to import.

This is easier to do in resolve than in typeck because there's code in typeck
that assumes that each of the patterns binds the same number of variables.
2012-07-10 18:24:41 -07:00
..
borrowck Switch 'cont' to 'again' everywhere. Close #2229. 2012-07-09 14:37:48 -07:00
trans Fix take glue for slices. 2012-07-10 16:32:54 -07:00
tstate For #2229, recognize 'again' in place of 'cont', final change pending snapshot. 2012-07-06 15:46:39 -07:00
typeck rustc: Introduce a coherence checker, behind a compile switch for now 2012-07-10 17:35:18 -07:00
astencode.rs Allow folds to drop items. 2012-07-09 17:44:46 -07:00
block_use.rs Convert to new closure syntax 2012-07-01 19:19:32 -07:00
borrowck.rs change borrowck error msg: 'declared in outer block' -> 'captured in a closure' (properly this time) 2012-07-09 14:01:39 -04:00
capture.rs Convert to new closure syntax 2012-07-01 19:19:32 -07:00
check_alt.rs Convert to new closure syntax 2012-07-01 19:19:32 -07:00
check_const.rs Convert to new closure syntax 2012-07-01 19:19:32 -07:00
check_loop.rs For #2229, recognize 'again' in place of 'cont', final change pending snapshot. 2012-07-06 15:46:39 -07:00
const_eval.rs Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this. 2012-06-21 16:44:10 -07:00
freevars.rs Switch the compiler over to using ~[] notation instead of []/~. Closes #2759. 2012-06-29 17:41:45 -07:00
kind.rs Switch 'cont' to 'again' everywhere. Close #2229. 2012-07-09 14:37:48 -07:00
lint.rs Make old_vecs an error. 2012-07-10 15:12:13 -07:00
liveness.rs For #2229, recognize 'again' in place of 'cont', final change pending snapshot. 2012-07-06 15:46:39 -07:00
pat_util.rs In resolve, check that an or-pattern has the same number of bindings in each disjunct 2012-07-10 18:24:41 -07:00
region.rs Convert to new closure syntax 2012-07-01 19:19:32 -07:00
resolve.rs Switch 'cont' to 'again' everywhere. Close #2229. 2012-07-09 14:37:48 -07:00
resolve3.rs In resolve, check that an or-pattern has the same number of bindings in each disjunct 2012-07-10 18:24:41 -07:00
ty.rs Modify reflect interface to pass tydescs back to client, stop on false return. 2012-07-10 15:16:48 -07:00
typeck.rs rustc: Introduce a coherence checker, behind a compile switch for now 2012-07-10 17:35:18 -07:00