Skip to content

Fix-ups following the cj_check PR - #36

Merged
pflanze merged 9 commits into
mainfrom
cj_post_check_fixups
Sep 5, 2026
Merged

pflanze merged 9 commits into
mainfrom
cj_post_check_fixups

Conversation

@pflanze

@pflanze pflanze commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

PR #30 left a few things open or sub-optimal, besides the anticipated BumpaloCow and ReborrowIn removal this also contains a few other small improvements.

With the new non-owning approach, the parser/AST does not need them
anymore.
It is quite large, hence Clone is wasteful. Also, should universally
never need Clone: either the type is Copy, then include it directly,
or otherwise handle it by reference.

- The `.map(|reference| &*reference)` is quite ugly. It is to turn the
  mutable reference into a shared one. (This is necessary because
  while an individual mutable reference is automatically cast to a
  shared one, after packing them up in the Vec no such conversion
  would happen anymore.) Not sure what to do about it.
@pflanze
pflanze requested a review from yusufraji September 4, 2026 22:24
@pflanze
pflanze force-pushed the cj_post_check_fixups branch from a3b63b7 to 424303d Compare September 5, 2026 15:22

@yusufraji yusufraji left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's ship it 🚀

@pflanze
pflanze merged commit 424303d into main Sep 5, 2026
1 check passed
@pflanze
pflanze deleted the cj_post_check_fixups branch September 5, 2026 17:08
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