mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
3029e09e2f
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.