Skip to content

dead_code fails to consider reexports of foreign items #15740

Closed
@huonw

Description

@huonw
#![crate_type = "lib"]
pub use x = foo;
extern { fn foo(); }

playpen

<anon>:3:10: 3:19 warning: code is never used: `foo`, #[warn(dead_code)] on by default
<anon>:3 extern { fn foo(); }
                  ^~~~~~~~~
[...]

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