Skip to content

Commit fc8beed

Browse files
committed
Add warn(unreachable_pub) to rustc_passes.
1 parent e387881 commit fc8beed

File tree

11 files changed

+196
-192
lines changed

11 files changed

+196
-192
lines changed

compiler/rustc_next_trait_solver/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// tidy-alphabetical-start
88
#![warn(unreachable_pub)]
99
// tidy-alphabetical-end
10-
1110
pub mod canonicalizer;
1211
pub mod coherence;
1312
pub mod delegate;

compiler/rustc_passes/src/debugger_visualizer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,6 @@ fn debugger_visualizers(tcx: TyCtxt<'_>, _: LocalCrate) -> Vec<DebuggerVisualize
9595
visitor.visualizers
9696
}
9797

98-
pub fn provide(providers: &mut Providers) {
98+
pub(crate) fn provide(providers: &mut Providers) {
9999
providers.debugger_visualizers = debugger_visualizers;
100100
}

compiler/rustc_passes/src/diagnostic_items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fn all_diagnostic_items(tcx: TyCtxt<'_>, (): ()) -> DiagnosticItems {
9090
items
9191
}
9292

93-
pub fn provide(providers: &mut Providers) {
93+
pub(crate) fn provide(providers: &mut Providers) {
9494
providers.diagnostic_items = diagnostic_items;
9595
providers.all_diagnostic_items = all_diagnostic_items;
9696
}

0 commit comments

Comments
 (0)