diff options
| author | bors <bors@rust-lang.org> | 2025-07-30 21:29:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-07-30 21:29:47 +0000 |
| commit | 606dcc0d2e54d260f67d8a91f8adaf797a4ed38a (patch) | |
| tree | 97f40b679b68e09b5c095b7526bfb66a8bd8c023 /compiler | |
| parent | 3048886e59c94470e726ecaaf2add7242510ac11 (diff) | |
| parent | a2320b25533df01d9b96707187b64e03595c9bee (diff) | |
| download | rust-606dcc0d2e54d260f67d8a91f8adaf797a4ed38a.tar.gz rust-606dcc0d2e54d260f67d8a91f8adaf797a4ed38a.zip | |
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.
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index b0d579a546f..587349d4cf4 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -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" } } |
