Skip to content

Conversation

@alexcrocha
Copy link

@alexcrocha alexcrocha commented Dec 20, 2025

  • Removed TODO comments from build.rs
  • To address the #[allow(dead_code)] TODO I moved it from the struct level to the parser field

Some nodes don't use their parser field, but conditionally omitting it
adds significant complexity. Keep parser on all nodes and suppress the
warning on the parser field.
@alexcrocha alexcrocha mentioned this pull request Dec 20, 2025
Copy link
Author

alexcrocha commented Dec 20, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@alexcrocha alexcrocha marked this pull request as ready for review December 20, 2025 01:50
@alexcrocha
Copy link
Author

Some nodes don't need the parser field since they have no children or constant pool access.
I explored omitting the field conditionally, but it adds significant complexity for little benefit.

Is the extra complexity worth it to remove the allow dead code lint attribute?

Copy link
Member

@vinistock vinistock left a comment

Choose a reason for hiding this comment

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

I don't think it's worth the extra complexity to remove the lint. This is fine 👍

@alexcrocha alexcrocha merged commit 3275ead into use_inline_format_args Jan 5, 2026
23 of 27 checks passed
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