Skip to content

Use #[warn(unreachable_pub)] #1615

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

Merged
merged 1 commit into from
May 21, 2019
Merged

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented May 17, 2019

I think it helps to avoid problems like #1477. (Seems there are still some false positives, but I think their impact is small)

@taiki-e taiki-e force-pushed the unreachable_pub branch 2 times, most recently from f8223e7 to 9b46498 Compare May 17, 2019 10:33
pub use self::StdIo::IoSlice as IoSlice;
pub use self::StdIo::IoSliceMut as IoSliceMut;
pub use self::StdIo::SeekFrom as SeekFrom;
#[allow(clippy::useless_attribute)] // https://github.com/rust-lang/rust-clippy/issues/4106
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This false positive has already been fixed on the master of clippy (rust-lang/rust-clippy#4107), but it may take some time for nightly to be released with this change.

@taiki-e taiki-e force-pushed the unreachable_pub branch from 9b46498 to c17ffcd Compare May 19, 2019 16:09
@cramertj
Copy link
Member

nice! i'm actually surprised this required so few changes. I'll happily merge once conflicts are resolved here.

@taiki-e taiki-e force-pushed the unreachable_pub branch from c17ffcd to e446f66 Compare May 20, 2019 23:03
@taiki-e
Copy link
Member Author

taiki-e commented May 20, 2019

Rebased (and Travis passed).

@cramertj cramertj merged commit 023f254 into rust-lang:master May 21, 2019
@taiki-e taiki-e deleted the unreachable_pub branch May 21, 2019 00:17
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 this pull request may close these issues.

2 participants