mirror of
https://github.com/rust-lang/rust
synced 2024-10-01 06:14:33 +00:00
update UI test
This commit is contained in:
parent
9b764c3190
commit
6c4f3f512e
|
@ -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() {}
|
||||
|
|
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue