rust/compiler/rustc_next_trait_solver
Nicholas Nethercote 35ad1705ed Optimize canonicalizer flag checks.
The most important change here relates to type folding: we now check the
flags up front, instead of doing it in `inner_fold_ty` after checking
the cache and doing a match. This is a small perf win, and matches other
similar folders (e.g. `CanonicalInstantiator`).

Likewise for const folding, we now check the flags first. (There is no
cache for const folding.)

Elsewhere we don't check flags before folding a predicate (unnecessary,
because `fold_predicate` already checks the flags itself before doing
anything else), and invert the flag checks in a couple of methods to
match the standard order.
2026-01-09 13:07:17 +11:00
..
src Optimize canonicalizer flag checks. 2026-01-09 13:07:17 +11:00
Cargo.toml Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00