about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2017-02-01 03:38:28 +0200
committerSimonas Kazlauskas <git@kazlauskas.me>2017-02-10 19:38:36 +0200
commit24c93efbb58f6644a62c231916144cc0af55a503 (patch)
tree928dc8641d499d90bfcb515bb855d8a5b966c108 /src/libsyntax/parse/parser.rs
parent98d1db7fe36fe5454937f40d9fcb4fe97f36bbeb (diff)
downloadrust-24c93efbb58f6644a62c231916144cc0af55a503.tar.gz
rust-24c93efbb58f6644a62c231916144cc0af55a503.zip
Move type of discriminant to AdtDef
Previously AdtDef variants contained ConstInt for each discriminant, which did not really reflect
the actual type of the discriminants. Moving the type into AdtDef allows to easily put the type
into metadata and also saves bytes from ConstVal overhead for each discriminant.

Also arguably the code is cleaner now :)
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions