Skip to content

refactor: replace manual trait impls with derive_more#41

Merged
iljakuklic merged 11 commits intodevelfrom
derive-more
Apr 5, 2026
Merged

refactor: replace manual trait impls with derive_more#41
iljakuklic merged 11 commits intodevelfrom
derive-more

Conversation

@iljakuklic
Copy link
Copy Markdown
Owner

iljakuklic and others added 4 commits April 4, 2026 09:47
Pulls in derive_more v2 and uses it to derive Display, Debug, AsRef,
and From instead of writing them by hand, closing #26.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds derive_more::IsVariant to Phase, giving .is_meta() and
.is_object() methods. Replaces seven == Phase::Meta/Object comparisons
in the checker and staging with the new methods.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Name is a DST and is always used behind a reference, so the impl
never enabled the HashMap lookup ergonomics it exists for. AsRef<str>
covers the remaining conversion use cases.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@iljakuklic iljakuklic self-assigned this Apr 4, 2026
iljakuklic and others added 2 commits April 4, 2026 12:16
Add #[from] to Prim, Pi, Lam variants of Term for consistency with
App, Let, Match.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
iljakuklic and others added 5 commits April 4, 2026 14:33
Move Token enum and its associated constants (KEYWORDS, SYMBOLS) to a dedicated token.rs module. This improves code organization by separating token definitions from lexer implementation.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@iljakuklic iljakuklic merged commit 75eb6e5 into devel Apr 5, 2026
3 checks passed
@iljakuklic iljakuklic deleted the derive-more branch April 5, 2026 15:24
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.

Consider derive macro crates for trait implementations

1 participant