From 54681b096ec0a676560907594fb5d4b991078e12 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Fri, 19 Oct 2018 16:36:16 +0200 Subject: [PATCH] restrict scope of methods that are only called within mod tree of parent. --- src/librustc_mir/build/matches/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_mir/build/matches/mod.rs b/src/librustc_mir/build/matches/mod.rs index 2f271e072c6e..71dc45db8b63 100644 --- a/src/librustc_mir/build/matches/mod.rs +++ b/src/librustc_mir/build/matches/mod.rs @@ -240,7 +240,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> { end_block.unit() } - pub fn expr_into_pattern( + pub(super) fn expr_into_pattern( &mut self, mut block: BasicBlock, irrefutable_pat: Pattern<'tcx>, @@ -488,7 +488,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> { ); } - pub fn visit_bindings( + pub(super) fn visit_bindings( &mut self, pattern: &Pattern<'tcx>, mut pattern_user_ty: Option<(UserTypeAnnotation<'tcx>, Span)>,