about summary refs log tree commit diff
path: root/src/rt/test/rust_test_runtime.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-01-05 11:46:38 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-01-06 14:44:43 -0800
commit7c7559edafcdde2d96781a34af1280fdd1dee6bd (patch)
tree167b04cf99e3e4f00d28f0dc44e0984f4938134c /src/rt/test/rust_test_runtime.cpp
parentda519c8587c46ec519fada1aee7cc32ed2c1cd6a (diff)
downloadrust-7c7559edafcdde2d96781a34af1280fdd1dee6bd.tar.gz
rust-7c7559edafcdde2d96781a34af1280fdd1dee6bd.zip
Disallow variable names that shadow tags in scope
Now, if you have a tag named "foo", a variable declaration like
"let foo..." is illegal. This change makes it possible to eliminate
the '.' after a nullary tag pattern in an alt (but I'll be doing
that in a future commit) -- as now it's always obvious whether a
name refers to a tag or a new declared variable.

resolve implements this change -- all the other changes are just to
get rid of existing code that declares variables that shadow tag
names.
Diffstat (limited to 'src/rt/test/rust_test_runtime.cpp')
0 files changed, 0 insertions, 0 deletions