Skip to content

Commit 2078e17

Browse files
committed
restrict visibility for enter/recurse
For some reason, I sometimes get compilation errors related to this and sometimes do not (?).
1 parent 6476caa commit 2078e17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/formality-core/src/parse/parser/left_recursion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ impl StackEntry {
180180
}
181181
}
182182

183-
pub fn enter<'s, 't, L, T>(
183+
pub(super) fn enter<'s, 't, L, T>(
184184
scope: &'s Scope<L>,
185185
text: &'t str,
186186
mut op: impl FnMut(usize) -> ParseResult<'t, T>,
@@ -439,7 +439,7 @@ where
439439
}
440440
}
441441

442-
pub fn recurse<'s, 't, R>(current_state: CurrentState, op: impl FnOnce() -> R) -> R {
442+
pub(super) fn recurse<'s, 't, R>(current_state: CurrentState, op: impl FnOnce() -> R) -> R {
443443
STACK.with_borrow_mut(|stack| {
444444
let top = stack.last_mut().unwrap();
445445
assert!(

0 commit comments

Comments
 (0)