Reduce exposure of some things.

This commit is contained in:
Nicholas Nethercote
2023-11-26 06:46:10 +11:00
parent 3570468ce7
commit dbaa78621a
3 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
self.arena.alloc(self.lower_pat_mut(pattern))
}
pub(crate) fn lower_pat_mut(&mut self, mut pattern: &Pat) -> hir::Pat<'hir> {
fn lower_pat_mut(&mut self, mut pattern: &Pat) -> hir::Pat<'hir> {
ensure_sufficient_stack(|| {
// loop here to avoid recursion
let node = loop {