Skip to content

Broken change diff view on lint #155873

@A4-Tacks

Description

@A4-Tacks

Code

fn foo(_: &str) {
    foo(
        r#"
struct String;
fn test() {}
        "#,
        r#"
struct String;
fn test() {}
        "#,
    );
}

Current output

See screenshots

Desired output

Rationale and extra context

Image

Other cases

Rust Version

rustc 1.97.0-nightly (36ba2c771 2026-04-23)
binary: rustc
commit-hash: 36ba2c7712052d731a7082d0eba5ed3d9d56c133
commit-date: 2026-04-23
host: aarch64-unknown-linux-gnu
release: 1.97.0-nightly
LLVM version: 22.1.2

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions