Skip to content

Commit 1d805c5

Browse files
committed
reduce visibility in some pp functions
1 parent 6ac049e commit 1d805c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_middle/src/mir/pretty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ impl Debug for VarDebugInfo<'_> {
498498

499499
/// Write out a human-readable textual representation of the MIR's `fn` type and the types of its
500500
/// local variables (both user-defined bindings and compiler temporaries).
501-
pub fn write_mir_intro<'tcx>(
501+
fn write_mir_intro<'tcx>(
502502
tcx: TyCtxt<'tcx>,
503503
body: &Body<'_>,
504504
w: &mut dyn io::Write,
@@ -701,7 +701,7 @@ pub fn dump_mir_def_ids(tcx: TyCtxt<'_>, single: Option<DefId>) -> Vec<DefId> {
701701
// Basic blocks and their parts (statements, terminators, ...)
702702

703703
/// Write out a human-readable textual representation for the given basic block.
704-
pub fn write_basic_block<'tcx, F>(
704+
fn write_basic_block<'tcx, F>(
705705
tcx: TyCtxt<'tcx>,
706706
block: BasicBlock,
707707
body: &Body<'tcx>,

0 commit comments

Comments
 (0)