Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useless_attribute should not warn unreachable_pub #4106

Closed
taiki-e opened this issue May 17, 2019 · 0 comments · Fixed by #4107
Closed

useless_attribute should not warn unreachable_pub #4106

taiki-e opened this issue May 17, 2019 · 0 comments · Fixed by #4107

Comments

@taiki-e
Copy link
Member

taiki-e commented May 17, 2019

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

bors added a commit that referenced this issue May 19, 2019
useless_attribute: Add unreachable_pub to whitelists

Fixes #4106

changelog: `useless_attribute`: whitelist `unreachable_pub` on `use` items
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant