Open matthiaskrgr opened 6 years ago
I'd assume this is the 2015 prelude's extern crate std;
item.
I get this warning consistently from RLS-preview in crates that don't have extern crate
. I have edition = 2018
in cargo.toml
. I do not get this warning when compiling from the command line with cargo build
.
cc @nrc for the change between RLS and CLI behavior
Removing from the release milestone, as functional Idiom Lints are not part of our Rust 2018 release goals. But we oughta' fix this =)
Triage: The reproducer does not work any longer with Rust 1.74, but I get a bunch of other errors, so hard to say if the reported problem has been fixed. Here is the current output:
=>
this is confusing because the highlighted line is a code comment and seems unrelated to the
extern crate
keyword.rustc 1.28.0-nightly (cd494c1f0 2018-06-27)
link to file: https://github.com/rust-lang-nursery/rust-clippy/blob/656b26ea4f2b330ea5b9cb3cb38545587eac8f7f/src/lib.rs