fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
874 B37 linesraw
1warning: unused extern crate
2  --> $DIR/remove-extern-crate.rs:10:1
3   |
4LL | extern crate core;
5   | ^^^^^^^^^^^^^^^^^^ help: remove it
6   |
7note: the lint level is 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:34:5
16   |
17LL |     extern crate core;
18   |     ^^^^^^^^^^^^^^^^^^
19   |
20help: convert it to a `use`
21   |
22LL |     use core;
23   |     ~~~
24
25warning: `extern crate` is not idiomatic in the new edition
26  --> $DIR/remove-extern-crate.rs:44:5
27   |
28LL |     pub extern crate core;
29   |     ^^^^^^^^^^^^^^^^^^^^^^
30   |
31help: convert it to a `use`
32   |
33LL |     pub use core;
34   |         ~~~
35
36warning: 3 warnings emitted
37