about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-07-10 18:24:41 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-07-10 18:24:41 -0700
commitf39477d9260c5b346df5e5a71abaaca891a8195d (patch)
tree059ff59c6cd75a9b3b38886c6b0fe19fbede57a8 /src/rt/rust_kernel.cpp
parent019d4291c712b5127e07b6dab02d4b8c484ecaf8 (diff)
downloadrust-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