mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-18 09:56:31 +00:00
use stores of the correct size to set discriminants Resolves an old HACK /FIXME. Note that I haven't worked much with codegen so I'm not sure if I'm using the functions correctly and I was surprised seeing out-of-range values being fed into `const_uint_big` but apparently they're wrapped implicitly? By making it explicit we can pass in-range values instead.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.