mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
Remove debug_assert that may legally check a false value
This may be false e.g. in the presence of a multiline string. Since the parser is in a more stable state than when this was introduced, I think this is OK to remove. Closes #2398
This commit is contained in:
parent
8ae2d9d407
commit
84f8152514
1 changed files with 0 additions and 1 deletions
|
@ -45,7 +45,6 @@ impl<'a> State<'a> {
|
|||
#[must_use]
|
||||
pub(crate) fn advance(&self, offset: usize) -> State<'a> {
|
||||
let mut state = self.clone();
|
||||
debug_assert!(!state.bytes()[..offset].iter().any(|b| *b == b'\n'));
|
||||
state.offset += offset;
|
||||
state
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue