Skip to content

Rust beta/nightly has a false positive #[warn(unused_imports)] that's not in stable #39225

Closed
@pedrocr

Description

@pedrocr

When compiling https://github.com/pedrocr/rawloader with rust beta or nightly I get an unused_import warning that's a false positive (the compile fails without that import). The import in question is the following:

https://github.com/pedrocr/rawloader/blob/rawloader-0.29.0/src/decoders/ljpeg/decompressors.rs#L3

With stable everything works fine. The import is a little too broad (need to break up that code) and changing it to just the two structs that are needed fixes the warning. Still seems like a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions