diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-06-06 08:41:31 -0600 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-06-09 13:44:55 -0600 |
| commit | 20efb19043335587e27a1c11bfeb596611e4bef7 (patch) | |
| tree | 24c4fce9eb9dceda1cdb2cbfdb4d97d6117f8056 | |
| parent | 07c3967de9027735bfbf9c739f6a8ca14312c22d (diff) | |
| download | rust-20efb19043335587e27a1c11bfeb596611e4bef7.tar.gz rust-20efb19043335587e27a1c11bfeb596611e4bef7.zip | |
Make a few methods private
| -rw-r--r-- | src/librustc/traits/on_unimplemented.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/traits/on_unimplemented.rs b/src/librustc/traits/on_unimplemented.rs index 1c17ace90c2..14b968c83b2 100644 --- a/src/librustc/traits/on_unimplemented.rs +++ b/src/librustc/traits/on_unimplemented.rs @@ -52,7 +52,7 @@ fn parse_error(tcx: TyCtxt<'_, '_, '_>, span: Span, } impl<'a, 'gcx, 'tcx> OnUnimplementedDirective { - pub fn parse(tcx: TyCtxt<'a, 'gcx, 'tcx>, + fn parse(tcx: TyCtxt<'a, 'gcx, 'tcx>, trait_def_id: DefId, items: &[NestedMetaItem], span: Span, @@ -215,7 +215,7 @@ impl<'a, 'gcx, 'tcx> OnUnimplementedDirective { } impl<'a, 'gcx, 'tcx> OnUnimplementedFormatString { - pub fn try_parse(tcx: TyCtxt<'a, 'gcx, 'tcx>, + fn try_parse(tcx: TyCtxt<'a, 'gcx, 'tcx>, trait_def_id: DefId, from: LocalInternedString, err_sp: Span) |
