fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
548 B19 linesraw
1warning: unused extern crate
2  --> $DIR/remove-extern-crate.rs:9:1
3   |
4LL | extern crate core;
5   | ^^^^^^^^^^^^^^^^^^ help: remove it
6   |
7note: lint level defined here
8  --> $DIR/remove-extern-crate.rs:7:9
9   |
10LL | #![warn(rust_2018_idioms)]
11   |         ^^^^^^^^^^^^^^^^
12   = note: `#[warn(unused_extern_crates)]` implied by `#[warn(rust_2018_idioms)]`
13
14warning: `extern crate` is not idiomatic in the new edition
15  --> $DIR/remove-extern-crate.rs:32:5
16   |
17LL |     extern crate core;
18   |     ^^^^^^^^^^^^^^^^^^ help: convert it to a `use`
19