]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/unnecessary-extern-crate.stderr
Rollup merge of #50667 - alexcrichton:no-remove-extern-crate-unless-works, r=Manishearth
[rust.git] / src / test / ui-fulldeps / unnecessary-extern-crate.stderr
1 error: `extern crate` is unnecessary in the new edition
2   --> $DIR/unnecessary-extern-crate.rs:16:1
3    |
4 LL | extern crate alloc;
5    | ^^^^^^^^^^^^^^^^^^^ help: remove it
6    |
7 note: lint level defined here
8   --> $DIR/unnecessary-extern-crate.rs:13:9
9    |
10 LL | #![deny(unnecessary_extern_crate)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: `extern crate` is unnecessary in the new edition
14   --> $DIR/unnecessary-extern-crate.rs:19:1
15    |
16 LL | extern crate alloc as x;
17    | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc as x`
18
19 error: `extern crate` is unnecessary in the new edition
20   --> $DIR/unnecessary-extern-crate.rs:25:1
21    |
22 LL | pub extern crate test as y;
23    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `pub use`: `pub use test as y`
24
25 error: `extern crate` is unnecessary in the new edition
26   --> $DIR/unnecessary-extern-crate.rs:28:1
27    |
28 LL | pub extern crate libc;
29    | ^^^^^^^^^^^^^^^^^^^^^^ help: use `pub use`: `pub use libc`
30
31 error: `extern crate` is unnecessary in the new edition
32   --> $DIR/unnecessary-extern-crate.rs:34:5
33    |
34 LL |     extern crate alloc;
35    |     ^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc`
36
37 error: `extern crate` is unnecessary in the new edition
38   --> $DIR/unnecessary-extern-crate.rs:37:5
39    |
40 LL |     extern crate alloc as x;
41    |     ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc as x`
42
43 error: `extern crate` is unnecessary in the new edition
44   --> $DIR/unnecessary-extern-crate.rs:40:5
45    |
46 LL |     pub extern crate test;
47    |     ^^^^^^^^^^^^^^^^^^^^^^ help: use `pub use`: `pub use test`
48
49 error: `extern crate` is unnecessary in the new edition
50   --> $DIR/unnecessary-extern-crate.rs:43:5
51    |
52 LL |     pub extern crate test as y;
53    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `pub use`: `pub use test as y`
54
55 error: `extern crate` is unnecessary in the new edition
56   --> $DIR/unnecessary-extern-crate.rs:47:9
57    |
58 LL |         extern crate alloc;
59    |         ^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc`
60
61 error: `extern crate` is unnecessary in the new edition
62   --> $DIR/unnecessary-extern-crate.rs:50:9
63    |
64 LL |         extern crate alloc as x;
65    |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc as x`
66
67 error: aborting due to 10 previous errors
68