rust/compiler/rustc_trait_selection/src
bors ae9173d7dd Auto merge of #139018 - oli-obk:incremental-trait-impls, r=compiler-errors
Various local trait item iteration cleanups

Adding a trait impl for `Foo` unconditionally affected all queries that are interested in a completely independent trait `Bar`. Perf has no effect on this. We probably don't have a good perf test for this tho.

r? `@compiler-errors`

I am unsure about https://github.com/rust-lang/rust/pull/139018/commits/9d05efb66f7b599eeacb5d2456f844fe4768e865 as it doesn't improve anything wrt incremental, because we still do all the checks for valid `Drop` impls, which subsequently will still invoke many queries and basically keep the depgraph the same.

I want to do

9549077a47/compiler/rustc_middle/src/ty/trait_def.rs (L141)

but would leave that to a follow-up PR, this one changes enough things as it is
2025-04-02 10:10:50 +00:00
..
error_reporting Remove a hir_* helper that was just forwarding to a query 2025-04-02 07:30:11 +00:00
errors Teach structured errors to display short Ty 2025-02-25 16:56:03 +00:00
solve simplify Interner opaque types API 2025-04-01 23:24:28 +02:00
traits Auto merge of #139018 - oli-obk:incremental-trait-impls, r=compiler-errors 2025-04-02 10:10:50 +00:00
errors.rs Don't use kw::Empty in hir::Lifetime::ident. 2025-03-28 10:15:23 +11:00
infer.rs Fix next solver handling of shallow trait impl check 2025-03-19 14:40:14 +00:00
lib.rs Remove #![warn(unreachable_pub)] from all compiler/ crates. 2025-03-11 13:14:21 +11:00
regions.rs Only use implied bounds hack if bevy, and use deeply normalize in implied bounds hack 2025-03-04 18:18:48 +00:00
solve.rs impossible obligations check fast path 2024-10-10 06:09:50 -04:00