Skip to content

Detect dead code better #2730

Closed
Closed

Description

@rbtcollins

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

Activity

  1. 0xPoe commented on Apr 24, 2021

    @0xPoe
    Member

    I am working on this.

  2. 0xPoe commented on May 21, 2021

    @0xPoe
    Member

    @rustbot claim

  3. 0xPoe commented on Jun 20, 2021

    @0xPoe
    Member
    • After most of the cleanup is done, we should globally introduce #! [deny(unreachable_pub)].
  4. removed their assignment
    on Jan 1, 2022
  5. 0xPoe commented on Jan 1, 2022

    @0xPoe
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions