Skip to content

Commit

Permalink
one more missing inline
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Sep 5, 2024
1 parent 4b29729 commit aa48a67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parser/src/earley/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ impl ParserState {
self.lexer_state().row_idx as usize + 1
}

#[inline(always)]
fn pop_lexer_states(&mut self, n: usize) {
assert!(self.lexer_stack.len() > n);
unsafe { self.lexer_stack.set_len(self.lexer_stack.len() - n) }
Expand Down

0 comments on commit aa48a67

Please sign in to comment.