diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-07-10 18:24:41 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-07-10 18:24:41 -0700 |
| commit | f39477d9260c5b346df5e5a71abaaca891a8195d (patch) | |
| tree | 059ff59c6cd75a9b3b38886c6b0fe19fbede57a8 /src/rt/rust_kernel.cpp | |
| parent | 019d4291c712b5127e07b6dab02d4b8c484ecaf8 (diff) | |
| download | rust-f39477d9260c5b346df5e5a71abaaca891a8195d.tar.gz rust-f39477d9260c5b346df5e5a71abaaca891a8195d.zip | |
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.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions
