about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-10-19 16:36:16 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-10-26 23:40:38 +0200
commit54681b096ec0a676560907594fb5d4b991078e12 (patch)
treea6be0ff35c7cd140b330e68fff590954485a4224
parent26c406945bdfbf21a14c8e1a0bf34c7e2db4cd09 (diff)
downloadrust-54681b096ec0a676560907594fb5d4b991078e12.tar.gz
rust-54681b096ec0a676560907594fb5d4b991078e12.zip
restrict scope of methods that are only called within mod tree of parent.
-rw-r--r--src/librustc_mir/build/matches/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/build/matches/mod.rs b/src/librustc_mir/build/matches/mod.rs
index 2f271e072c6..71dc45db8b6 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)>,