Skip to content

Remove anyhow from the WIT lexer#2461

Open
PhoebeSzmucer wants to merge 1 commit intobytecodealliance:mainfrom
PhoebeSzmucer:rm-lexer-anyhow
Open

Remove anyhow from the WIT lexer#2461
PhoebeSzmucer wants to merge 1 commit intobytecodealliance:mainfrom
PhoebeSzmucer:rm-lexer-anyhow

Conversation

@PhoebeSzmucer
Copy link
Contributor

  • Add 3 more variants to lex:Error - ControlCodepoint, DeprecatedCodepoint, ForbiddenCodepoint
  • Delete anyhow from the lexer API and implementation, by using core::result::Result instead of anyhow::Result. This way the consumer of the lexer can extract granular error information without having to parse the error message.
  • Introduce lex::Error::position()

Part of #2460

@PhoebeSzmucer PhoebeSzmucer requested a review from a team as a code owner March 10, 2026 20:14
@PhoebeSzmucer PhoebeSzmucer requested review from alexcrichton and removed request for a team March 10, 2026 20:14
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.

1 participant