Skip to content

Commit 43eeb8b

Browse files
GnomedDevzonyitoo
authored andcommitted
Add inline(never) to Parser::error
1 parent 599aeaf commit 43eeb8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,8 @@ impl<'a> Parser<'a> {
12451245
}
12461246
}
12471247

1248+
#[cold]
1249+
#[inline(never)]
12481250
fn error<U, M: Into<Cow<'static, str>>>(&self, msg: M) -> Result<U, ParseError> {
12491251
Err(ParseError {
12501252
line: self.line + 1,

0 commit comments

Comments
 (0)