Skip to content

Detect dead code better #2730

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

Closed
rbtcollins opened this issue Apr 23, 2021 · 4 comments
Closed

Detect dead code better #2730

rbtcollins opened this issue Apr 23, 2021 · 4 comments

Comments

@rbtcollins
Copy link
Contributor

rbtcollins commented Apr 23, 2021

We should stop using 'pub' and instead use 'crate' within rustup. Rustup has no exported API, but having pub functions results in dead types and functions not being detected. rust-lang/rust#79061 is an example of this technique applied to rustdoc

@0xPoe
Copy link
Member

0xPoe commented Apr 24, 2021

I am working on this.

@0xPoe
Copy link
Member

0xPoe commented May 21, 2021

@rustbot claim

@0xPoe
Copy link
Member

0xPoe commented Jun 20, 2021

  • After most of the cleanup is done, we should globally introduce #! [deny(unreachable_pub)].

@0xPoe
Copy link
Member

0xPoe commented Jan 1, 2022

I think we can close it now. It's done.

@kinnison kinnison closed this as completed Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants