Commit 6c4f3f5 1 parent 9b764c3 commit 6c4f3f5 Copy full SHA for 6c4f3f5
File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 16
16
#![ warn( rust_2018_idioms) ]
17
17
#![ allow( unused_imports) ]
18
18
19
- extern crate std as foo;
19
+ extern crate removing_extern_crate as foo;
20
20
extern crate core;
21
21
22
22
mod another {
23
- extern crate std as foo;
24
- extern crate std ;
23
+ extern crate removing_extern_crate as foo;
24
+ extern crate core ;
25
25
}
26
26
27
27
fn main ( ) { }
Original file line number Diff line number Diff line change 1
1
warning: unused extern crate
2
2
--> $DIR/removing-extern-crate.rs:19:1
3
3
|
4
- LL | extern crate std as foo;
5
- | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
4
+ LL | extern crate removing_extern_crate as foo;
5
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
6
6
|
7
7
note: lint level defined here
8
8
--> $DIR/removing-extern-crate.rs:16:9
@@ -20,12 +20,12 @@ LL | extern crate core;
20
20
warning: unused extern crate
21
21
--> $DIR/removing-extern-crate.rs:23:5
22
22
|
23
- LL | extern crate std as foo;
24
- | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
23
+ LL | extern crate removing_extern_crate as foo;
24
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
25
25
26
26
warning: unused extern crate
27
27
--> $DIR/removing-extern-crate.rs:24:5
28
28
|
29
- LL | extern crate std ;
30
- | ^^^^^^^^^^^^^^^^^ help: remove it
29
+ LL | extern crate core ;
30
+ | ^^^^^^^^^^^^^^^^^^ help: remove it
31
31
You can’t perform that action at this time.
0 commit comments