edition idioms: Incorrect span in extern crate
removal
#56328
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-edition-2018-lints
Area: lints supporting the 2018 edition
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
First reported upstream this code:
when compiled yields:
but the suggestion is incorrect! Both the
extern crate
and the attribute on the item should be removed.The text was updated successfully, but these errors were encountered: