1 warning: `extern crate` is unnecessary in the new edition
2 --> $DIR/removing-extern-crate.rs:19:1
4 LL | extern crate std as foo;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `use`: `use std as foo;`
7 note: lint level defined here
8 --> $DIR/removing-extern-crate.rs:16:9
10 LL | #![warn(rust_2018_idioms)]
12 = note: #[warn(unnecessary_extern_crate)] implied by #[warn(rust_2018_idioms)]
14 warning: `extern crate` is unnecessary in the new edition
15 --> $DIR/removing-extern-crate.rs:20:1
17 LL | extern crate core;
18 | ^^^^^^^^^^^^^^^^^^ help: remove it
20 warning: `extern crate` is unnecessary in the new edition
21 --> $DIR/removing-extern-crate.rs:23:5
23 LL | extern crate std as foo;
24 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `use`: `use std as foo;`
26 warning: `extern crate` is unnecessary in the new edition
27 --> $DIR/removing-extern-crate.rs:24:5
29 LL | extern crate std;
30 | ^^^^^^^^^^^^^^^^^ help: use `use`: `use std;`