Skip to content

Commit

Permalink
Rollup merge of rust-lang#93748 - klensy:vis-r, r=cjgillot
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
JohnTitor authored Feb 9, 2022
2 parents e5ac087 + eb3b29f commit 68fa9b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_query_impl/src/plumbing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ macro_rules! define_queries {
}

#[allow(nonstandard_style)]
pub mod queries {
mod queries {
use std::marker::PhantomData;

$(pub struct $name<$tcx> {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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)*]);

Expand Down

0 comments on commit 68fa9b1

Please sign in to comment.