rust/compiler/rustc_trait_selection/src
bors 5f025f363d Auto merge of #141581 - lcnr:fold-clauses, r=compiler-errors
add additional `TypeFlags` fast paths

Some crates, e.g. `diesel`, have items with a lot of where-clauses (more than 150). In these cases checking the `TypeFlags` of the whole `param_env` can be very beneficial.

This adds `fn fold_clauses` to mirror the existing `fn visit_clauses` and then uses this in folders which fold `ParamEnv`s.

Split out from rust-lang/rust#141451, depends on rust-lang/rust#141442.

r? `@compiler-errors`
2025-05-29 02:29:01 +00:00
..
error_reporting Rename unpack to kind 2025-05-27 11:14:45 +00:00
errors Move eager translation to a method on Diag 2025-04-16 21:38:59 -04:00
solve Auto merge of #141581 - lcnr:fold-clauses, r=compiler-errors 2025-05-29 02:29:01 +00:00
traits Rename unpack to kind 2025-05-27 11:14:45 +00:00
errors.rs do away with _Self and TraitName and check generic params for rustc_on_unimplemented 2025-05-17 15:15:53 +02:00
infer.rs Consider Copy/Clone too 2025-04-22 17:05:15 +00:00
lib.rs update cfg(bootstrap) 2025-05-12 15:33:37 +02:00
opaque_types.rs Rename unpack to kind 2025-05-27 11:14:45 +00: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 confusings 2025-04-29 18:55:21 +01:00