about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/query/keys.rs
AgeCommit message (Collapse)AuthorLines
2023-03-28Move `mir::Field` → `abi::FieldIdx`Scott McMurray-1/+2
The first PR for https://github.com/rust-lang/compiler-team/issues/606 This is just the move-and-rename, because it's plenty big-and-bitrotty already. Future PRs will start using `FieldIdx` more broadly, and concomitantly removing `FieldIdx::new`s.
2023-03-21LocalCrate keyMichael Goulet-2/+6
2023-03-21AsLocalKey traitMichael Goulet-304/+43
2023-03-21Use LocalDefId in ItemCtxtMichael Goulet-3/+3
2023-03-21Use local key in providersMichael Goulet-109/+202
2023-03-14Use `unused_generic_params` from crate metadataMichael Goulet-2/+2
2023-02-27Unify all validity check intrinsicsNilstrieb-2/+2
Also merges the inhabitedness check into the query to further unify the code paths.
2023-02-23Unify validity checks into a single queryNilstrieb-1/+23
Previously, there were two queries to check whether a type allows the 0x01 or zeroed bitpattern. I am planning on adding a further initness to check, truly uninit for MaybeUninit, which would make this three queries. This seems overkill for such a small feature, so this PR unifies them into one.
2023-02-11Create a single value cache for the () query keyJohn Kåre Alsaker-2/+2
2022-12-16Add a comment warning against using associated type defaults <3Maybe Waffle-0/+8
2022-12-09Help rust-analyzer normalize query return typesMaybe Waffle-1/+97
2022-11-01Use Key impl to select cache.Camille GILLOT-1/+10
2022-11-01Move keys module.Camille GILLOT-0/+585