Auto merge of #116316 - cjgillot:incr-privacy, r=petrochenkov

Remove eval_always from check_private_in_public.

This PR attempts to avoid re-computing `check_private_in_public` query. First by marking the query as non-`eval_always`, and by reducing the amount of accesses to HIR as much as possible.

Latest perf https://github.com/rust-lang/rust/pull/116316#issuecomment-3094672105 shows that we manage it. The cost is extra dep-graph bookkeeping.
This commit is contained in:
bors 2025-07-30 21:29:47 +00:00
commit a51eb314aa

Diff Content Not Available