rust/compiler/rustc_middle/src
bors a93bcdc307 Auto merge of #109849 - scottmcm:more-fieldidx-rebase, r=oli-obk
Use `FieldIdx` in various things related to aggregates

Shrank `AggregateKind` by 8 bytes on x64, since the active field of a union is tracked as an `Option<FieldIdx>` instead of `Option<usize>`.

Part 3/? of https://github.com/rust-lang/compiler-team/issues/606

[`IndexSlice`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_index/vec/struct.IndexVec.html#deref-methods-IndexSlice%3CI,+T%3E) was added in https://github.com/rust-lang/rust/pull/109787
2023-04-02 21:40:29 +00:00
..
dep_graph Pass DepContext and QueryContext by value when practical 2023-02-14 17:21:18 +01:00
hir Update ty::VariantDef to use IndexVec<FieldIdx, FieldDef> 2023-03-30 09:23:40 -07:00
infer Auto merge of #108121 - aliemjay:resolve-var-region, r=lcnr 2023-03-08 12:33:21 +00:00
middle fix clippy::iter_kv_map 2023-04-01 23:44:16 +02:00
mir Use FieldIdx in various things related to aggregates 2023-04-01 20:32:50 -07:00
query Move mir::Fieldabi::FieldIdx 2023-03-28 22:22:37 -07:00
thir Move THIR printing to rustc_mir_build. 2023-02-26 14:31:15 +00:00
traits woops 2023-03-21 16:39:24 +01:00
ty use and_then/flat_map for map().flatten() 2023-04-01 23:50:45 +02:00
util Add some docs to bug, span_bug and delay_span_bug 2022-12-30 16:47:56 +01:00
arena.rs rustc_interface: Add a new query pre_configure 2023-03-23 14:22:48 +04:00
error.rs Match crate and slug names 2022-11-21 15:24:50 +01:00
lib.rs Stabilize a portion of 'once_cell' 2023-03-29 18:04:44 -04:00
lint.rs create helper function for rustc_lint_defs::Level and remove it's duplicated code r=ozkanonur 2023-01-10 10:56:17 +03:00
macros.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
metadata.rs rustc: Parameterize ty::Visibility over used ID 2022-09-07 13:35:41 +04:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs Update ty::VariantDef to use IndexVec<FieldIdx, FieldDef> 2023-03-30 09:23:40 -07:00
values.rs rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00