"#)
.file("src/lib.rs", "")
.file("build.rs", "
+ #[allow(unused_extern_crates)]
extern crate a;
fn main() {}
")
[build-dependencies.aaaaa]
path = "a"
"#)
- .file("src/lib.rs", "extern crate aaaaa;")
+ .file("src/lib.rs", "#[allow(unused_extern_crates)] extern crate aaaaa;")
.file("build.rs", "
+ #[allow(unused_extern_crates)]
extern crate aaaaa;
fn main() {}
")
"#)
.file("src/lib.rs", "")
.file("build.rs", "
+ #[allow(unused_extern_crates)]
extern crate a;
fn main() {}
")
path = "../b"
"#)
.file("a/src/lib.rs", "")
- .file("a/build.rs", "extern crate b; fn main() {}")
+ .file("a/build.rs", "#[allow(unused_extern_crates)] extern crate b; fn main() {}")
.file("b/Cargo.toml", r#"
[project]
name = "b"
[dependencies]
a = { path = "a" }
"#)
- .file("src/lib.rs", "extern crate a;")
+ .file("src/lib.rs", "#[allow(unused_extern_crates)] extern crate a;")
.file("a/Cargo.toml", r#"
[project]
name = "a"
b = { path = "../b" }
"#)
.file("a/src/lib.rs", "")
- .file("a/build.rs", "extern crate b; fn main() {}")
+ .file("a/build.rs", "#[allow(unused_extern_crates)] extern crate b; fn main() {}")
.file("b/Cargo.toml", r#"
[project]
name = "b"