Do not inline error path functions.

This commit is contained in:
Stephen Chung
2021-10-19 20:16:36 +08:00
parent 2334cd8f56
commit 6d31bb0d19
5 changed files with 7 additions and 5 deletions

View File

@@ -266,7 +266,7 @@ impl fmt::Display for ParseErrorType {
}
impl From<LexError> for ParseErrorType {
#[inline(always)]
#[inline(never)]
fn from(err: LexError) -> Self {
match err {
LexError::StringTooLong(max) => {