Skip to content

yeast: Remove support for fresh literals - #22668

Open
tausbn wants to merge 1 commit into
mainfrom
tausbn/yeast-remove-support-for-fresh-literals
Open

tausbn wants to merge 1 commit into
mainfrom
tausbn/yeast-remove-support-for-fresh-literals

Conversation

@tausbn

@tausbn tausbn commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

We don't use these, and have no immediate plans to do so either, so in the interest of cleaning things up, I'm getting rid of this now. We can always add them back later if necessary.

We don't use these, and have no immediate plans to do so either, so in
the interest of cleaning things up, I'm getting rid of this now. We can
always add them back later if necessary.
@tausbn tausbn added the no-change-note-required This PR does not need a change note label Sep 23, 2026
@tausbn
tausbn marked this pull request as ready for review September 23, 2026 19:11
@tausbn
tausbn requested a review from a team as a code owner September 23, 2026 19:11
Copilot AI balanced review requested due to automatic review settings September 23, 2026 19:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The hard-coded temporary identifier can collide with assignment targets and produce incorrect transformations.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Removes Yeast’s fresh-literal support from its API, macros, tests, and documentation.

Changes:

  • Removes FreshScope and fresh-name plumbing.
  • Removes $fresh parsing and documentation.
  • Replaces generated test identifiers with fixed names.
File Summary
shared/​yeast/​tests/​test.rs Uses fixed temporary names. Critical: assignment_tmp is non-hygienic and can overwrite matched targets before later values are read (lines 799 and 827).
shared/​yeast/​src/​tree_builder.rs Removes fresh-name generation.
shared/​yeast/​src/​lib.rs Removes fresh-scope integration.
shared/​yeast/​src/​build.rs Removes fresh-scope state and APIs.
shared/​yeast/​doc/​yeast.md Removes fresh-literal documentation.
shared/​yeast-macros/​src/​parse.rs Removes fresh-literal parsing.
shared/​yeast-macros/​src/​lib.rs Updates macro documentation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread shared/yeast/tests/test.rs

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

documentation no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants