Skip to content

2018: fix lint on unused dependencies #57274

Open
@mark-i-m

Description

@mark-i-m

Quoting from #53128 (comment)

Previously warn(unused_extern_crates) was a way to detect unused dependencies. How can I:

  1. declare dependencies in the root module
  2. be warned when those dependencies are not used

As it is now, cargo builds all dependencies and does not warn if they are unused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions