Skip to content

Commit 6c4f3f5

Browse files
committed
update UI test
1 parent 9b764c3 commit 6c4f3f5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/test/ui/removing-extern-crate.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
#![warn(rust_2018_idioms)]
1717
#![allow(unused_imports)]
1818

19-
extern crate std as foo;
19+
extern crate removing_extern_crate as foo;
2020
extern crate core;
2121

2222
mod another {
23-
extern crate std as foo;
24-
extern crate std;
23+
extern crate removing_extern_crate as foo;
24+
extern crate core;
2525
}
2626

2727
fn main() {}

src/test/ui/removing-extern-crate.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
warning: unused extern crate
22
--> $DIR/removing-extern-crate.rs:19:1
33
|
4-
LL | extern crate std as foo;
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
4+
LL | extern crate removing_extern_crate as foo;
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
66
|
77
note: lint level defined here
88
--> $DIR/removing-extern-crate.rs:16:9
@@ -20,12 +20,12 @@ LL | extern crate core;
2020
warning: unused extern crate
2121
--> $DIR/removing-extern-crate.rs:23:5
2222
|
23-
LL | extern crate std as foo;
24-
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
23+
LL | extern crate removing_extern_crate as foo;
24+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
2525

2626
warning: unused extern crate
2727
--> $DIR/removing-extern-crate.rs:24:5
2828
|
29-
LL | extern crate std;
30-
| ^^^^^^^^^^^^^^^^^ help: remove it
29+
LL | extern crate core;
30+
| ^^^^^^^^^^^^^^^^^^ help: remove it
3131

0 commit comments

Comments
 (0)