Skip to content

Commit 50bb7c5

Browse files
committed
Tighten visibility of items.rs internal helpers
get_item_details, default_unwrap_early_binder, and print_type are only called within items.rs; drop the unnecessary pub(super).
1 parent 2a9e940 commit 50bb7c5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/printer/items.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fn generic_data(tcx: TyCtxt<'_>, id: DefId) -> GenericData {
100100
GenericData(v)
101101
}
102102

103-
pub(super) fn get_item_details(
103+
fn get_item_details(
104104
tcx: TyCtxt<'_>,
105105
id: DefId,
106106
fn_inst: Option<Instance>,
@@ -126,7 +126,7 @@ pub(super) fn get_item_details(
126126
}
127127
}
128128

129-
pub(super) fn default_unwrap_early_binder<'tcx, T>(
129+
fn default_unwrap_early_binder<'tcx, T>(
130130
tcx: TyCtxt<'tcx>,
131131
id: DefId,
132132
v: EarlyBinder<'tcx, T>,
@@ -149,7 +149,7 @@ where
149149
}
150150
}
151151

152-
pub(super) fn print_type<'tcx>(
152+
fn print_type<'tcx>(
153153
tcx: TyCtxt<'tcx>,
154154
id: DefId,
155155
ty: EarlyBinder<'tcx, Ty<'tcx>>,

0 commit comments

Comments
 (0)