Skip to content

Bad code highlighting #6419

@c410-f3r

Description

@c410-f3r
fn stuff() {
    let foo = vec![1, 2];
    #[
        // Won't do much
        allow(clippy::indexing_slicing)
    ]
    let _ = foo[0];
}

struct MoreStuff {
    a: i32,
    b: i32,
    c: i32
}

The ' of Won't messes with sub-sequence code highlight. Funny enough, the same behavior doesn't happen when the comment is outside of the macro scope.

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