Repository navigation
WIP: parser: retire WordMetadata::word_quotes (always-empty storage) - #2000
Merged
Merged
Conversation
The field was always empty (wt44/parse4: the executor re-derives quoting from the raw word at consumption time) and was retained only because niubash-runtime's drive-letter admission still read it. That reader dropped the read in the 1.5.0 Session migration (niubash feat/150-session-migration), so the storage now goes the way of the other retired per-word record kinds: field removed from WordMetadata, its three construction sites cleaned, and one comment in executor/command_words.rs reworded so it no longer names the field. ArrayElementAssignment::word_quotes is a different, live field (written by a real scan, read by array_assignment_exec) and stays, as does the word_quotes_in_raw scanner itself. Sequencing (cross-repo retirement): niu stops reading (done on the migration branch) -> this deletion -> the niubash pin re-bumps at release time. niubash CI builds against rubash master, and this repo's niu canary builds niubash master against this tree, so the canary is expected red until the niubash migration merges; both repos compile at each step of the train. Gates (local Linux): cargo check --locked --all-targets green; -D warnings clean on lib/bins/examples; parser test targets 316 + 68 + 31 passed; lib parser:: tests 23 passed.
caomengxuan666
marked this pull request as ready for review
October 29, 2026 03:59
This was referenced Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP: cross-repo retirement, step 2 of the word_quotes train (tracking rubash#1978). Do not merge until the niubash Session migration (niubash
feat/150-session-migration) has merged — its change drops the last read of this field, and this repo's niu canary builds niubash master against this tree, so the canary is expected red until then.What
Removes
WordMetadata::word_quotes— always-empty storage (the executor re-derives quoting from the raw word at consumption time), retained until now only because niubash-runtime's drive-letter admission read it. That read is dropped on the niubash migration branch (the disjunct never fired: the field was empty on every instance).ArrayElementAssignment::word_quotes(live, scan-written) and theword_quotes_in_rawscanner are untouched.Train
Gates (local Linux)
cargo check --locked --all-targetsgreen;-D warningsclean on lib/bins/examples.parser::tests 23 passed.