Skip to content

Return Vec<ParserSrcEnvError> from ParserSrcEnv::build_env() - #674

Open
ratmice wants to merge 3 commits into
softdevteam:masterfrom
ratmice:error_improvement
Open

ratmice wants to merge 3 commits into
softdevteam:masterfrom
ratmice:error_improvement

Conversation

@ratmice

@ratmice ratmice commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Here is another follow-up patch we discussed to improve the errors in ParserSrcEnvError.

@ratmice

ratmice commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

The second patch is the other patch we had discussed, and I believe the last thing on my todo list.
I figure since it basically touches all the same code, it might be worth having them both in the same PR.

@ratmice

ratmice commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

I guess there was some things on my radar that weren't on my todo list,

  1. Using the Cargo.toml workspace.lints features
  2. Adding lints like as_conversions (and another I cannot recall)
  3. Finishing making lrlex codegen unstable (I keep forgetting that)

But both the lints I wanted to add require some work on existing code that triggers the lints,
which I haven't managed to cleanly get converted yet.

@ltratt

ltratt commented Dec 4, 2026

Copy link
Copy Markdown
Member

Please squash.

Move a few variants into the `HeaderError` struct
and replace them with a single variant
`ParserSrcEnvError::HeaderError`.
@ratmice

ratmice commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator Author

Squashed and rewrite the commit messages.

Edit: I was kind of divided upon whether I should squash the first two patches together, so let me know if you prefer I squash them further.

This branch has not been deployed

No deployments
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