Skip to content

Diagnostic doesn't align properly in span where line number increases by one digit #11715

Closed
@ktt3ja

Description

@ktt3ja

For example, in this case there should be two spaces between 8 and fn instead of one.

test2.rs:8:1: 12:2 warning: code is never used: `foo`, #[warn(dead_code)] on by default
test2.rs:8 fn foo() {
test2.rs:9 
test2.rs:10 
test2.rs:11 
test2.rs:12 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions