@@ -16,83 +16,29 @@ error: unused extern crate
16
16
LL | extern crate alloc as x;
17
17
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
18
18
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
-
55
19
error: unused extern crate
56
- --> $DIR/unnecessary-extern-crate.rs:51 :5
20
+ --> $DIR/unnecessary-extern-crate.rs:41 :5
57
21
|
58
22
LL | extern crate alloc;
59
23
| ^^^^^^^^^^^^^^^^^^^ help: remove it
60
24
61
25
error: unused extern crate
62
- --> $DIR/unnecessary-extern-crate.rs:55 :5
26
+ --> $DIR/unnecessary-extern-crate.rs:45 :5
63
27
|
64
28
LL | extern crate alloc as x;
65
29
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
66
30
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
-
79
31
error: unused extern crate
80
- --> $DIR/unnecessary-extern-crate.rs:68 :9
32
+ --> $DIR/unnecessary-extern-crate.rs:54 :9
81
33
|
82
34
LL | extern crate alloc;
83
35
| ^^^^^^^^^^^^^^^^^^^ help: remove it
84
36
85
37
error: unused extern crate
86
- --> $DIR/unnecessary-extern-crate.rs:72 :9
38
+ --> $DIR/unnecessary-extern-crate.rs:58 :9
87
39
|
88
40
LL | extern crate alloc as x;
89
41
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
90
42
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
98
44
0 commit comments