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 606dcc0d2e

View file

@ -1391,7 +1391,6 @@ rustc_queries! {
desc { "checking effective visibilities" }
}
query check_private_in_public(_: ()) {
eval_always
desc { "checking for private elements in public interfaces" }
}