Skip to content

useless_attribute should not warn unreachable_pub #4106

@taiki-e

Description

@taiki-e

unreachable_pub can apply to use.

#![warn(unreachable_pub)]
#![warn(clippy::useless_attribute)]

mod a {
    mod b {
        #[allow(unreachable_pub)]
        pub struct C {}
    }
    #[allow(unreachable_pub)]
    pub use b::C;
}

Playground

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