rust/compiler/rustc_ty_utils/src
bors eb3e9c1f45 Auto merge of #109762 - scottmcm:variantdef-indexvec, r=WaffleLapkin
Update `ty::VariantDef` to use `IndexVec<FieldIdx, FieldDef>`

And while doing the updates for that, also uses `FieldIdx` in `ProjectionKind::Field` and `TypeckResults::field_indices`.

There's more places that could use it (like `rustc_const_eval` and `LayoutS`), but I tried to keep this PR from exploding to *even more* places.

Part 2/? of https://github.com/rust-lang/compiler-team/issues/606
2023-03-31 03:36:18 +00:00
..
abi.rs Support TLS access into dylibs on Windows 2023-03-29 08:55:21 +02:00
assoc.rs Walk return-position impl trait in trait deeply in associated_item_def_ids 2023-03-29 11:19:48 -03:00
common_traits.rs remove some trait solver helpers 2023-03-21 09:57:20 +01:00
consts.rs Refactor: VariantIdx::from_u32(0) -> FIRST_VARIANT 2023-03-25 18:58:25 -07:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
implied_bounds.rs rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00
instance.rs Add a builtin FnPtr trait 2023-03-27 12:16:54 +00:00
layout_sanity_check.rs stricter alignment enforcement for ScalarPair and Vector 2022-11-28 15:09:56 +01:00
layout.rs Update ty::VariantDef to use IndexVec<FieldIdx, FieldDef> 2023-03-30 09:23:40 -07:00
lib.rs Simplify message paths 2023-03-11 22:51:57 +01:00
needs_drop.rs Rename many interner functions. 2023-02-24 07:32:24 +11:00
representability.rs Use local key in providers 2023-03-21 15:38:51 +00:00
structural_match.rs Move has_structural_eq_impls provider to rustc_ty_utils 2022-12-08 05:16:48 +00:00
ty.rs Update ty::VariantDef to use IndexVec<FieldIdx, FieldDef> 2023-03-30 09:23:40 -07:00