diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index 1ae716e0200..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;