diff --git a/src/librustc_mir/build/matches/mod.rs b/src/librustc_mir/build/matches/mod.rs index 2f271e072c6e3254d324a674427518e0264b195b..71dc45db8b638ed41c7078bd6aa657261572b89a 100644 --- a/src/librustc_mir/build/matches/mod.rs +++ b/src/librustc_mir/build/matches/mod.rs @@ -240,7 +240,7 @@ pub fn match_expr( 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 @@ pub fn schedule_drop_for_binding(&mut self, var: NodeId, span: Span, for_guard: ); } - pub fn visit_bindings( + pub(super) fn visit_bindings( &mut self, pattern: &Pattern<'tcx>, mut pattern_user_ty: Option<(UserTypeAnnotation<'tcx>, Span)>,