rust/compiler/rustc_mir_dataflow/src
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
..
framework Remove DropAndReplace terminator 2023-03-07 14:25:22 +01:00
impls Introduce a no-op PlaceMention statement for let _ =. 2023-03-09 17:45:13 +00:00
move_paths Introduce a no-op PlaceMention statement for let _ =. 2023-03-09 17:45:13 +00:00
drop_flag_effects.rs Treat Drop as a rmw operation 2023-01-30 00:20:40 +01:00
elaborate_drops.rs Refactor: VariantIdx::from_u32(0) -> FIRST_VARIANT 2023-03-25 18:58:25 -07:00
errors.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
lib.rs Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_peek.rs Rollup merge of #99027 - tmiasko:basic-blocks, r=oli-obk 2022-08-29 06:34:43 +02:00
storage.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
un_derefer.rs Auto merge of #99667 - ouz-a:some_branch, r=oli-obk 2022-07-29 07:11:50 +00:00
value_analysis.rs Introduce a no-op PlaceMention statement for let _ =. 2023-03-09 17:45:13 +00:00