rust/compiler/rustc_const_eval/src/const_eval
Scott McMurray 0439d13176 Refactor: VariantIdx::from_u32(0) -> FIRST_VARIANT
Since structs are always `VariantIdx(0)`, there's a bunch of files where the only reason they had `VariantIdx` or `vec::Idx` imported at all was to get the first variant.

So this uses a constant for that, and adds some doc-comments to `VariantIdx` while I'm there, since it doesn't have any today.
2023-03-25 18:58:25 -07:00
..
error.rs rustc_const_eval: remove ref patterns (+some pattern matching imps) 2023-01-17 07:48:19 +00:00
eval_queries.rs Rename many interner functions. 2023-02-24 07:32:24 +11:00
fn_queries.rs Use local key in providers 2023-03-21 15:38:51 +00:00
machine.rs Detect uninhabited types early in const eval. 2023-03-21 11:09:27 +00:00
mod.rs Use target instead of machine for mir interpreter integer handling. 2023-02-15 08:56:18 +00:00
valtrees.rs Refactor: VariantIdx::from_u32(0) -> FIRST_VARIANT 2023-03-25 18:58:25 -07:00