Skip to content

check: deletion-only diff reports its finding at line 0 (./src/lib.rs:0) #11486

Closed

Description

@EffortlessSteven

Found in the 0.11 first-user pass.

Repro: in a tiny Rust crate with a committed pub fn disc(...) on line 1 of src/lib.rs, run sed -i '1d' src/lib.rs && ripr check. Output lists - ./src/lib.rs:0 (unknown: infection unclear); kind: predicate under "Hidden".

Goal: a finding location is a real 1-based line (or the output says it is base-side at old line N). Line 0 reads as a bug.

Owner: output/analysis (base-side finding location). Fix in the PR linked below.

Activity

  1. EffortlessSteven commented on Oct 31, 2026

    @EffortlessSteven
    MemberAuthor

    Ownership receipt: this is already owned by open Draft PR #11518 (head f32745b), which clamps the top-of-file deletion's new-side line to 1 and adds a unit test for the @@ -1 +0,0 @@ hunk. Not duplicating. Leaving this issue open because the fix has not landed on main; it should close when #11518 merges.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions