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

Detect dead code better #2730

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

@Rustin170506
Copy link
Member

I am working on this.

@Rustin170506
Copy link
Member

@rustbot claim

@Rustin170506
Copy link
Member

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

@Rustin170506
Copy link
Member

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