mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
restrict scope of methods that are only called within mod tree of parent.
This commit is contained in:
parent
26c406945b
commit
54681b096e
@ -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)>,
|
||||
|
Loading…
Reference in New Issue
Block a user