rust/compiler/rustc_ty_utils/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
..
abi.rs Remove Ty::is_region_ptr 2023-03-20 15:32:21 +08:00
assoc.rs Auto merge of #109497 - matthiaskrgr:rollup-6txuxm0, r=matthiaskrgr 2023-03-22 21:35:02 +00: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 Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
layout.rs Refactor: VariantIdx::from_u32(0) -> FIRST_VARIANT 2023-03-25 18:58:25 -07:00
layout_sanity_check.rs stricter alignment enforcement for ScalarPair and Vector 2022-11-28 15:09:56 +01: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 Do not feed param_env for RPITITs impl side 2023-03-22 14:06:22 -03:00