diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-01-05 11:46:38 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-01-06 14:44:43 -0800 |
| commit | 7c7559edafcdde2d96781a34af1280fdd1dee6bd (patch) | |
| tree | 167b04cf99e3e4f00d28f0dc44e0984f4938134c /src/rt/rust_shape.cpp | |
| parent | da519c8587c46ec519fada1aee7cc32ed2c1cd6a (diff) | |
| download | rust-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/rust_shape.cpp')
0 files changed, 0 insertions, 0 deletions
