Skip to content

Commit 20efb19

Browse files
Make a few methods private
1 parent 07c3967 commit 20efb19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/traits/on_unimplemented.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn parse_error(tcx: TyCtxt<'_, '_, '_>, span: Span,
5252
}
5353

5454
impl<'a, 'gcx, 'tcx> OnUnimplementedDirective {
55-
pub fn parse(tcx: TyCtxt<'a, 'gcx, 'tcx>,
55+
fn parse(tcx: TyCtxt<'a, 'gcx, 'tcx>,
5656
trait_def_id: DefId,
5757
items: &[NestedMetaItem],
5858
span: Span,
@@ -215,7 +215,7 @@ impl<'a, 'gcx, 'tcx> OnUnimplementedDirective {
215215
}
216216

217217
impl<'a, 'gcx, 'tcx> OnUnimplementedFormatString {
218-
pub fn try_parse(tcx: TyCtxt<'a, 'gcx, 'tcx>,
218+
fn try_parse(tcx: TyCtxt<'a, 'gcx, 'tcx>,
219219
trait_def_id: DefId,
220220
from: LocalInternedString,
221221
err_sp: Span)

0 commit comments

Comments
 (0)