about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/delegation.rs
AgeCommit message (Collapse)AuthorLines
2025-06-13Use more slicing and slice interning over iterable interningLeón Orell Valerian Liehr-2/+1
2025-03-15Stop relying on rustc_type_ir in non-type-system cratesMichael Goulet-2/+3
2025-03-15Fold visit into tyMichael Goulet-1/+1
2025-03-15Squash fold into tyMichael Goulet-2/+1
2025-03-12Rollup merge of #138407 - Bryanskiy:delegation-variadic, r=petrochenkovManish Goregaokar-0/+5
Delegation: reject C-variadics The explanation is contained in attached issues. Fixes https://github.com/rust-lang/rust/issues/127443 Fixes https://github.com/rust-lang/rust/issues/127413 r? `@petrochenkov`
2025-03-12Delegation: reject C-variadicsBryanskiy-0/+5
2025-03-12Move methods from `Map` to `TyCtxt`, part 4.Nicholas Nethercote-2/+2
Continuing the work from #137350. Removes the unused methods: `expect_variant`, `expect_field`, `expect_foreign_item`. Every method gains a `hir_` prefix.
2025-02-08Rustfmtbjorn3-4/+4
2025-01-31Remove unnecessary builders.Nicholas Nethercote-193/+139
`delegation.rs` has three builders: `GenericsBuilder`, `PredicatesBuilder`, and `GenericArgsBuilder`. The first two builders have just two optional parameters, and the third one has zero. Each builder is used within a single function. The code is over-engineered. This commit removes the builders, replacing each with with a single `build_*` function. This makes the code shorter and simpler.
2025-01-31Format `delegation.rs` better.Nicholas Nethercote-22/+15
There is a comment `Delegation to inherent methods is not yet supported.` that appears three times mid-pattern and somehow inhibits rustfmt from formatting the enclosing `match` statement. This commit moves them to the top of the pattern, which enables more formatting.
2025-01-31Merge two identical match arms.Nicholas Nethercote-7/+2
Note: `inherit_predicates_for_delegation_item` already has these cases merged.
2024-10-26Effects cleanupDeadbeef-2/+0
- removed extra bits from predicates queries that are no longer needed in the new system - removed the need for `non_erasable_generics` to take in tcx and DefId, removed unused arguments in callers
2024-10-24Remove associated type based effects logicMichael Goulet-5/+0
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-4/+4
2024-09-05Delegation: support generics in associated delegation itemsBryanskiy-51/+192
2024-09-03Delegation refactoring: add builders for generics inheritanceBryanskiy-80/+184
2024-08-11Use assert_matches around the compilerMichael Goulet-1/+3
2024-07-31Delegation: second attempt to improve perfBryanskiy-1/+1
2024-07-29Delegation: support generics for delegation from free functionsBryanskiy-0/+259