Skip to content

Implement core::error::Error for ParserError and TokenizerError#2189

Merged
iffyio merged 2 commits intoapache:mainfrom
LucaCappelletti94:core-error
Feb 2, 2026
Merged

Implement core::error::Error for ParserError and TokenizerError#2189
iffyio merged 2 commits intoapache:mainfrom
LucaCappelletti94:core-error

Conversation

@LucaCappelletti94
Copy link
Copy Markdown
Contributor

@LucaCappelletti94 LucaCappelletti94 commented Feb 1, 2026

This PR updates ParserError and TokenizerError to implement core::error::Error instead of std::error::Error.

This change enables the Error trait implementation for these types in no_std environments unconditionally, removing the need for #[cfg(feature = "std")] guards.

@LucaCappelletti94 LucaCappelletti94 marked this pull request as ready for review February 1, 2026 07:47
@iffyio iffyio changed the title Implement core::error::Error for ParserError and TokenizerError Implement core::error::Error for ParserError and TokenizerError Feb 2, 2026
Copy link
Copy Markdown
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @LucaCappelletti94!

@iffyio iffyio added this pull request to the merge queue Feb 2, 2026
Merged via the queue into apache:main with commit 37aa792 Feb 2, 2026
10 checks passed
ayman-sigma pushed a commit to sigmacomputing/sqlparser-rs that referenced this pull request Feb 3, 2026
fmguerreiro pushed a commit to fmguerreiro/datafusion-sqlparser-rs that referenced this pull request Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants