Skip to content

Commit 54681b0

Browse files
committed
restrict scope of methods that are only called within mod tree of parent.
1 parent 26c4069 commit 54681b0

File tree

1 file changed

+2
-2
lines changed
  • src/librustc_mir/build/matches

1 file changed

+2
-2
lines changed

src/librustc_mir/build/matches/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
240240
end_block.unit()
241241
}
242242

243-
pub fn expr_into_pattern(
243+
pub(super) fn expr_into_pattern(
244244
&mut self,
245245
mut block: BasicBlock,
246246
irrefutable_pat: Pattern<'tcx>,
@@ -488,7 +488,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
488488
);
489489
}
490490

491-
pub fn visit_bindings(
491+
pub(super) fn visit_bindings(
492492
&mut self,
493493
pattern: &Pattern<'tcx>,
494494
mut pattern_user_ty: Option<(UserTypeAnnotation<'tcx>, Span)>,

0 commit comments

Comments
 (0)