Skip to content

docs(citations): retarget four constructs left on 3.4.4 lines - #7315

Merged
oferchen merged 1 commit into
masterfrom
fix/citation-flipback-3.5.0
Aug 14, 2026
Merged

oferchen merged 1 commit into
masterfrom
fix/citation-flipback-3.5.0

Conversation

@oferchen

Copy link
Copy Markdown
Owner

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

cited 3.5.0 line content correct
options.c:2787 (blank line) options.c:2953-2954
generator.c:298 if (DEBUG_GTE(DEL, 2)) generator.c:304
generator.c:714 unrelated generator.c:720-721

What the correct lines actually contain:

/* options.c:2953-2957 */
if (block_size) {
    if (asprintf(&arg, "-B%u", (int)block_size) < 0)
        goto oom;
    args[ac++] = arg;
}

/* generator.c:304-311 */
if (io_error & IOERR_GENERAL && !ignore_errors) {
    if (already_warned)
        return;
    rprintf(FINFO, "IO error encountered -- skipping file deletion\n");
    already_warned = 1;
    return;
}

/* generator.c:720-721, sum_sizes_sqroot() */
if (block_size)
    blength = block_size;

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 citations checks 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 citation names a file rsync 3.5.0 has, at a line that file has. This does NOT mean the cited line says what the comment claims; nothing here checks that.

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 -- --check clean; 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.

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
oferchen enabled auto-merge (squash) August 14, 2026 04:02
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 14, 2026
@oferchen
oferchen merged commit 545473f into master Aug 14, 2026
67 of 68 checks passed
@oferchen
oferchen deleted the fix/citation-flipback-3.5.0 branch August 14, 2026 05:36
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant