@@ -16,83 +16,29 @@ error: unused extern crate
1616LL | extern crate alloc as x;
1717 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
1818
19- error: `extern crate` is not idiomatic in the new edition
20- --> $DIR/unnecessary-extern-crate.rs:26:1
21- |
22- LL | pub extern crate test as y;
23- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert it to a `pub use`
24-
25- error: `extern crate` is not idiomatic in the new edition
26- --> $DIR/unnecessary-extern-crate.rs:30:1
27- |
28- LL | pub extern crate libc;
29- | ^^^^^^^^^^^^^^^^^^^^^^ help: convert it to a `pub use`
30-
31- error: `extern crate` is not idiomatic in the new edition
32- --> $DIR/unnecessary-extern-crate.rs:34:1
33- |
34- LL | pub(crate) extern crate libc as a;
35- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert it to a `pub(crate) use`
36-
37- error: `extern crate` is not idiomatic in the new edition
38- --> $DIR/unnecessary-extern-crate.rs:38:1
39- |
40- LL | crate extern crate libc as b;
41- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert it to a `crate use`
42-
43- error: `extern crate` is not idiomatic in the new edition
44- --> $DIR/unnecessary-extern-crate.rs:43:5
45- |
46- LL | pub(in crate::foo) extern crate libc as c;
47- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert it to a `pub(in crate::foo) use`
48-
49- error: `extern crate` is not idiomatic in the new edition
50- --> $DIR/unnecessary-extern-crate.rs:47:5
51- |
52- LL | pub(super) extern crate libc as d;
53- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert it to a `pub(super) use`
54-
5519error: unused extern crate
56- --> $DIR/unnecessary-extern-crate.rs:51 :5
20+ --> $DIR/unnecessary-extern-crate.rs:41 :5
5721 |
5822LL | extern crate alloc;
5923 | ^^^^^^^^^^^^^^^^^^^ help: remove it
6024
6125error: unused extern crate
62- --> $DIR/unnecessary-extern-crate.rs:55 :5
26+ --> $DIR/unnecessary-extern-crate.rs:45 :5
6327 |
6428LL | extern crate alloc as x;
6529 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
6630
67- error: `extern crate` is not idiomatic in the new edition
68- --> $DIR/unnecessary-extern-crate.rs:59:5
69- |
70- LL | pub extern crate test;
71- | ^^^^^^^^^^^^^^^^^^^^^^ help: convert it to a `pub use`
72-
73- error: `extern crate` is not idiomatic in the new edition
74- --> $DIR/unnecessary-extern-crate.rs:63:5
75- |
76- LL | pub extern crate test as y;
77- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert it to a `pub use`
78-
7931error: unused extern crate
80- --> $DIR/unnecessary-extern-crate.rs:68 :9
32+ --> $DIR/unnecessary-extern-crate.rs:54 :9
8133 |
8234LL | extern crate alloc;
8335 | ^^^^^^^^^^^^^^^^^^^ help: remove it
8436
8537error: unused extern crate
86- --> $DIR/unnecessary-extern-crate.rs:72 :9
38+ --> $DIR/unnecessary-extern-crate.rs:58 :9
8739 |
8840LL | extern crate alloc as x;
8941 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
9042
91- error: `extern crate` is not idiomatic in the new edition
92- --> $DIR/unnecessary-extern-crate.rs:76:9
93- |
94- LL | pub(in crate::foo::bar) extern crate libc as e;
95- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert it to a `pub(in crate::foo::bar) use`
96-
97- error: aborting due to 15 previous errors
43+ error: aborting due to 6 previous errors
9844
0 commit comments