diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-02-09 14:12:23 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-09 14:12:23 +0900 |
| commit | 68fa9b198aaef41b173f5dbf4b2822765ce5007c (patch) | |
| tree | 83e6f8fe6115387f44e478e9ff2cab6784dc5c82 | |
| parent | e5ac08779b8cca9c25baaaec3335cacd1c2057ab (diff) | |
| parent | eb3b29fd09552abf1c00b1eea4150361ac94dc0b (diff) | |
| download | rust-68fa9b198aaef41b173f5dbf4b2822765ce5007c.tar.gz rust-68fa9b198aaef41b173f5dbf4b2822765ce5007c.zip | |
Rollup merge of #93748 - klensy:vis-r, r=cjgillot
rustc_query_impl: reduce visibility of some modules/fn's Locally this reduces number of exported functions from 15221 -> 14952 and size a little. Perf run please?
| -rw-r--r-- | compiler/rustc_query_impl/src/plumbing.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index 6d76d09f619..b58b0f87630 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -299,7 +299,7 @@ macro_rules! define_queries { } #[allow(nonstandard_style)] - pub mod queries { + mod queries { use std::marker::PhantomData; $(pub struct $name<$tcx> { @@ -353,7 +353,7 @@ macro_rules! define_queries { })* #[allow(nonstandard_style)] - pub mod query_callbacks { + mod query_callbacks { use super::*; use rustc_middle::dep_graph::DepNode; use rustc_middle::ty::query::query_keys; @@ -402,7 +402,7 @@ macro_rules! define_queries { } } - $(pub fn $name()-> DepKindStruct { + $(pub(crate) fn $name()-> DepKindStruct { let is_anon = is_anon!([$($modifiers)*]); let is_eval_always = is_eval_always!([$($modifiers)*]); |
