Skip to content

Commit 606dcc0

Browse files
committed
Auto merge of rust-lang#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 rust-lang#116316 (comment) shows that we manage it. The cost is extra dep-graph bookkeeping.
2 parents 3048886 + a2320b2 commit 606dcc0

File tree

1 file changed

+0
-1
lines changed
  • compiler/rustc_middle/src/query

1 file changed

+0
-1
lines changed

compiler/rustc_middle/src/query/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,6 @@ rustc_queries! {
13911391
desc { "checking effective visibilities" }
13921392
}
13931393
query check_private_in_public(_: ()) {
1394-
eval_always
13951394
desc { "checking for private elements in public interfaces" }
13961395
}
13971396

0 commit comments

Comments
 (0)