Skip to content

Commit ea7b756

Browse files
committed
Make tempfile a normal dependency
1 parent a839b07 commit ea7b756

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

compiler/rustc_codegen_gcc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ default = ["master"]
2323

2424
[dependencies]
2525
object = { version = "0.37.0", default-features = false, features = ["std", "read"] }
26+
tempfile = "3.20"
2627
gccjit = "2.7"
2728
#gccjit = { git = "https://github.com/rust-lang/gccjit.rs" }
2829

@@ -32,7 +33,6 @@ gccjit = "2.7"
3233
[dev-dependencies]
3334
boml = "0.3.1"
3435
lang_tester = "0.8.0"
35-
tempfile = "3.20"
3636

3737
[profile.dev]
3838
# By compiling dependencies with optimizations, performing tests gets much faster.

compiler/rustc_codegen_gcc/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@
2626
#![deny(clippy::pattern_type_mismatch)]
2727
#![allow(clippy::needless_lifetimes, clippy::uninlined_format_args)]
2828

29-
// Some "regular" crates we want to share with rustc
29+
// These crates are pulled from the sysroot because they are part of
30+
// rustc's public API, so we need to ensure version compatibility.
3031
extern crate smallvec;
31-
// FIXME(antoyo): clippy bug: remove the #[allow] when it's fixed.
32-
#[allow(unused_extern_crates)]
33-
extern crate tempfile;
3432
#[macro_use]
3533
extern crate tracing;
3634

0 commit comments

Comments
 (0)