diff options
| author | Kevin Atkinson <kevina@cs.utah.edu> | 2012-01-16 02:36:47 -0700 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-16 11:19:33 +0100 |
| commit | e1c50c4410804dfce9fbe040f341f6104cc9ba7e (patch) | |
| tree | 5afd49a9f0b209d2853f991532297a315d342b13 /src/rt/rust_kernel.cpp | |
| parent | edf11ebf021dba897e5419cca53de3b652670799 (diff) | |
| download | rust-e1c50c4410804dfce9fbe040f341f6104cc9ba7e.tar.gz rust-e1c50c4410804dfce9fbe040f341f6104cc9ba7e.zip | |
Don't evaluate discriminator value constants when parsing.
Remove disr_val from ast::variant_ and always use ty::variant_info when the value is needed. Move what was done during parsing into other passes, primary typeck.rs. This move also correctly type checks the disr. value expression; thus, fixing rustc --pretty=typed when disr. values are used.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions
