about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/passes.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-05-08 10:04:26 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-06-03 08:44:33 +1000
commitd070e892305435781604da3e8dc14b862f5ed6a4 (patch)
treed71a7a1205408f6748e7dbc7c229f84ab118602b /compiler/rustc_lint/src/passes.rs
parent22ca74f2b089b7f861794969934c7e00f7a945a7 (diff)
downloadrust-d070e892305435781604da3e8dc14b862f5ed6a4.tar.gz
rust-d070e892305435781604da3e8dc14b862f5ed6a4.zip
Reduce some `pub` exposure.
Diffstat (limited to 'compiler/rustc_lint/src/passes.rs')
-rw-r--r--compiler/rustc_lint/src/passes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/passes.rs b/compiler/rustc_lint/src/passes.rs
index c4f5f152de5..2a843977990 100644
--- a/compiler/rustc_lint/src/passes.rs
+++ b/compiler/rustc_lint/src/passes.rs
@@ -237,5 +237,5 @@ macro_rules! declare_combined_early_lint_pass {
 }
 
 /// A lint pass boxed up as a trait object.
-pub type EarlyLintPassObject = Box<dyn EarlyLintPass + 'static>;
-pub type LateLintPassObject<'tcx> = Box<dyn LateLintPass<'tcx> + 'tcx>;
+pub(crate) type EarlyLintPassObject = Box<dyn EarlyLintPass + 'static>;
+pub(crate) type LateLintPassObject<'tcx> = Box<dyn LateLintPass<'tcx> + 'tcx>;