Repository navigation
docs(citations): retarget four constructs left on 3.4.4 lines - #7315
Merged
Merged
Conversation
Master's pin moved to rsync 3.5.0 (PINNED_SOURCE_DIR, citations.rs:64).
Four constructs were retargeted to 3.4.4 line numbers while 3.4.4 was the
pin, and under 3.5.0 they now name unrelated code.
Read from the pinned 3.5.0 tree, not inferred:
options.c:2787 -> (blank line)
options.c:2953 -> `if (block_size) {`
options.c:2954 -> `if (asprintf(&arg, "-B%u", (int)block_size) < 0)`
options.c:2953-57 -> the whole -B emission block
generator.c:298 -> `if (DEBUG_GTE(DEL, 2))`
generator.c:304 -> `if (io_error & IOERR_GENERAL && !ignore_errors) {`
generator.c:304-311 -> that block through its closing brace
generator.c:714 -> unrelated
generator.c:720 -> `if (block_size)`
generator.c:721 -> `blength = block_size;`
So: 2787-2790 -> 2953-2954, 2787-2791 -> 2953-2957,
298 -> 304, 298-305 -> 304-311, 714 -> 720, 714-715 -> 720-721.
The citation gate cannot catch this class and stays green either way: it
checks that the file exists and the line is in bounds, not that the line
says what the comment claims - as its own summary states. Every stale
3.4.4 number is comfortably in bounds for 3.5.0's longer files. The
evidence is therefore the source lines above, not a green check.
Comment-only: zero non-comment lines change, and every replacement is the
same character count, so no line reflows.
oferchen
enabled auto-merge (squash)
August 14, 2026 04:02
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Master's pin moved to rsync 3.5.0 (PINNED_SOURCE_DIR, citations.rs:64).
Four constructs were retargeted to 3.4.4 line numbers while 3.4.4 was the
pin, and under 3.5.0 they now name unrelated code.
Read from the pinned 3.5.0 tree, not inferred:
options.c:2787 -> (blank line)
options.c:2953 -> `if (block_size) {`
options.c:2954 -> `if (asprintf(&arg, "-B%u", (int)block_size) < 0)`
options.c:2953-57 -> the whole -B emission block
generator.c:298 -> `if (DEBUG_GTE(DEL, 2))`
generator.c:304 -> `if (io_error & IOERR_GENERAL && !ignore_errors) {`
generator.c:304-311 -> that block through its closing brace
generator.c:714 -> unrelated
generator.c:720 -> `if (block_size)`
generator.c:721 -> `blength = block_size;`
So: 2787-2790 -> 2953-2954, 2787-2791 -> 2953-2957,
298 -> 304, 298-305 -> 304-311, 714 -> 720, 714-715 -> 720-721.
The citation gate cannot catch this class and stays green either way: it
checks that the file exists and the line is in bounds, not that the line
says what the comment claims - as its own summary states. Every stale
3.4.4 number is comfortably in bounds for 3.5.0's longer files. The
evidence is therefore the source lines above, not a green check.
Comment-only: zero non-comment lines change, and every replacement is the
same character count, so no line reflows.
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.
Master's pin is rsync 3.5.0 (
PINNED_SOURCE_DIR,xtask/src/commands/citations.rs:64). Four constructs were retargeted to 3.4.4 line numbers while 3.4.4 was the pin. Under 3.5.0 they name unrelated code.Evidence — read from the pinned 3.5.0 tree, not inferred
options.c:2787options.c:2953-2954generator.c:298if (DEBUG_GTE(DEL, 2))generator.c:304generator.c:714generator.c:720-721What the correct lines actually contain:
Mappings applied:
2787-2790→2953-2954,2787-2791→2953-2957,298→304,298-305→304-311,714→720,714-715→720-721.⚠ The gate cannot catch this class, and stays green either way
cargo xtask citationschecks that the cited file exists and the line is in bounds — not that the line says what the comment claims. Its own summary says so:Every stale 3.4.4 number is comfortably in bounds for 3.5.0's longer files, so the gate passed before this change and passes after. The evidence is the source lines above, not a green check. This is distinct from the word-filter coverage hole already filed separately.
Scope and safety
Nine files, comment-only. Zero non-comment lines change, and every replacement is the same character count, so nothing reflows.
Gates:
cargo fmt --all -- --checkclean;cargo xtask citations= 7766 names and 7766 line ranges across 4923 files, exit 0.Residual, stated rather than implied
This fixes the constructs for which the wrong-target claim is measured. It is not a full sweep of everything retargeted while 3.4.4 was the pin — that class is invisible to tooling by construction and needs its own pass. Two independent instances of it have now been found by two people; treat that as a lower bound, not a total.