Skip to content

Commit 3c3f469

Browse files
committed
Remove extern crate semver.
1 parent 7147762 commit 3c3f469

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

tests/ui/single_component_use_path.fixed

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// compile-flags: --edition 2018
33
#![warn(clippy::single_component_use_path)]
44

5-
extern crate semver;
65

76

87
fn main() {

tests/ui/single_component_use_path.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// compile-flags: --edition 2018
33
#![warn(clippy::single_component_use_path)]
44

5-
extern crate semver;
65
use semver;
76

87
fn main() {
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
error[E0254]: the name `semver` is defined multiple times
2-
--> $DIR/single_component_use_path.rs:6:5
1+
error[E0432]: unresolved import `semver`
2+
--> $DIR/single_component_use_path.rs:5:5
33
|
4-
LL | extern crate semver;
5-
| -------------------- previous import of the extern crate `semver` here
64
LL | use semver;
7-
| ^^^^^^ `semver` reimported here
8-
|
9-
= note: `semver` must be defined only once in the type namespace of this module
5+
| ^^^^^^ no `semver` external crate
106

117
error: this import is redundant
12-
--> $DIR/single_component_use_path.rs:6:1
8+
--> $DIR/single_component_use_path.rs:5:1
139
|
1410
LL | use semver;
1511
| ^^^^^^^^^^^ help: remove it entirely
@@ -18,4 +14,4 @@ LL | use semver;
1814

1915
error: aborting due to 2 previous errors
2016

21-
For more information about this error, try `rustc --explain E0254`.
17+
For more information about this error, try `rustc --explain E0432`.

0 commit comments

Comments
 (0)