about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/hir/place.rs
AgeCommit message (Collapse)AuthorLines
2023-07-24Perform OpaqueCast field projection on HIR, too.Oli Scherer-0/+4
This is necessary for closure captures in 2021 edition, as they capture individual fields, not the full mentioned variables. So it may try to capture a field of an opaque (because the hidden type is known to be something with a field).
2023-04-26Remove unused `TypeFoldable`/`TypeVisitable` impls.Nicholas Nethercote-1/+0
2023-03-30Update `ty::VariantDef` to use `IndexVec<FieldIdx, FieldDef>`Scott McMurray-2/+2
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
2022-07-05Add #[derive(TypeVisitable)]Alan Egerton-38/+10
2020-12-29don't redundantly repeat field namesMatthias Krüger-4/+1
2020-12-20Edit rustc_middle docspierwill-10/+10
Re-word doc comment for rustc_middle::hir::place::Projection. Also adds: - Missing end stop punctuation, and - Documentation links to `rustc_middle::mir::Place`.
2020-12-06Writeback min_capture map to TypeckResultsAman Arora-5/+38
- Derive TypeFoldable on `hir::place::Place` and associated structs, to them to be written into typeck results. Co-authored-by: Jennifer Wills <wills.jenniferg@gmail.com> Co-authored-by: Logan Mosier <logmosier@gmail.com>
2020-10-18Replace unnecessary map_or_else with map_orDániel Buga-1/+1
2020-08-30mv compiler to compiler/mark-0/+115