restrict scope of methods that are only called within mod tree of parent.

This commit is contained in:
Felix S. Klock II 2018-10-19 16:36:16 +02:00
parent 26c406945b
commit 54681b096e

View File

@ -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)>,