about summary refs log tree commit diff
path: root/src/rt/rust_run_program.cpp
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2013-03-26 18:46:48 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2013-03-27 07:04:13 -0700
commit4d6dcefcbb8688b69dd80bc7382a2f593c3b08d8 (patch)
tree0c688bb5af8a87ec2566e0d88da9b031e539e625 /src/rt/rust_run_program.cpp
parent478e4498b76178dc0031f88f0d5ee31c5f804d0b (diff)
downloadrust-4d6dcefcbb8688b69dd80bc7382a2f593c3b08d8.tar.gz
rust-4d6dcefcbb8688b69dd80bc7382a2f593c3b08d8.zip
std: Decode::read_enum_variant should pass in the variant names
Because the json::Decoder uses the string variant name, we need a
way to correlate the string to the enum index. This passes in a
static &[&str] to read_enum_variant, which allows the json::Decoder
to know which branch it's trying to process.
Diffstat (limited to 'src/rt/rust_run_program.cpp')
0 files changed, 0 insertions, 0 deletions