Skip to content

Commit

Permalink
update UI test
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric committed Sep 6, 2018
1 parent 9b764c3 commit 6c4f3f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/test/ui/removing-extern-crate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
#![warn(rust_2018_idioms)]
#![allow(unused_imports)]

extern crate std as foo;
extern crate removing_extern_crate as foo;
extern crate core;

mod another {
extern crate std as foo;
extern crate std;
extern crate removing_extern_crate as foo;
extern crate core;
}

fn main() {}
12 changes: 6 additions & 6 deletions src/test/ui/removing-extern-crate.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
warning: unused extern crate
--> $DIR/removing-extern-crate.rs:19:1
|
LL | extern crate std as foo;
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
LL | extern crate removing_extern_crate as foo;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
|
note: lint level defined here
--> $DIR/removing-extern-crate.rs:16:9
Expand All @@ -20,12 +20,12 @@ LL | extern crate core;
warning: unused extern crate
--> $DIR/removing-extern-crate.rs:23:5
|
LL | extern crate std as foo;
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
LL | extern crate removing_extern_crate as foo;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it

warning: unused extern crate
--> $DIR/removing-extern-crate.rs:24:5
|
LL | extern crate std;
| ^^^^^^^^^^^^^^^^^ help: remove it
LL | extern crate core;
| ^^^^^^^^^^^^^^^^^^ help: remove it

0 comments on commit 6c4f3f5

Please sign in to comment.