]> git.lizzy.rs Git - rust.git/commit
Adjust reflection for the possibility of discriminants larger than int.
authorJed Davis <jld@panix.com>
Sun, 29 Sep 2013 09:20:11 +0000 (02:20 -0700)
committerJed Davis <jld@panix.com>
Tue, 29 Oct 2013 16:09:20 +0000 (09:09 -0700)
commitfcfbfde0b71d2470cb544d3d216eaf61ceb348bf
treecf2498a05b0bd22e430b441482dbaa335d7c90e1
parent92109b12029b21e27f9f12a2b4faf4abc0627b64
Adjust reflection for the possibility of discriminants larger than int.

Not only can discriminants be smaller than int now, but they can be
larger than int on 32-bit targets.  This has obvious implications for the
reflection interface.  Without this change, things fail with LLVM
assertions when we try to "extend" i64 to i32.
src/librustc/middle/trans/common.rs
src/librustc/middle/trans/reflect.rs
src/libstd/reflect.rs
src/libstd/repr.rs
src/libstd/unstable/intrinsics.rs
src/test/run-pass/enum-discrim-width-stuff.rs
src/test/run-pass/reflect-visit-data.rs
src/test/run-pass/reflect-visit-type.rs