Skip to content

Do not warn of unused import after E0433 #48723

Closed
@estebank

Description

@estebank
Contributor

Currently, if an import fails to resolve, we also emit a warning. The warning should be silenced.

error[E0433]: failed to resolve. Could not find `ext` in `os`
  --> src/lib.rs:37:22
   |
37 |         use std::os::ext::ffi::OsStringExt;
   |                      ^^^ Could not find `ext` in `os`

warning: unused import: `std::os::ext::ffi::OsStringExt`
   --> src/lib.rs:37:13
    |
37 |         use std::os::ext::ffi::OsStringExt;
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: #[warn(unused_imports)] on by default

Original report

Activity

added
C-enhancementCategory: An issue proposing an enhancement or a PR with one.
A-diagnosticsArea: Messages for errors, warnings, and lints
on Mar 4, 2018
zackmdavis

zackmdavis commented on Mar 4, 2018

@zackmdavis
Member

(duplicate of #48244)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zackmdavis@estebank

        Issue actions

          Do not warn of unused import after E0433 · Issue #48723 · rust-lang/rust