Skip to content

Later duplicate attributes, e.g. #[ignore(cfg(windows))] #[ignore], are silently ignored #2976

Closed
@bblum

Description

@bblum

I'd marked a test case with those two attributes, intended to remove the second one later, but the compiler didn't bother with the second one to begin with. This caused a known-buggy test case to run anyway and wedge the build bots on all but windows.

I would have liked to have seen something like warning: duplicate ignore attribute; ignoring the latter

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions