about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDiggory Blake <diggsey@googlemail.com>2025-07-05 17:23:39 +0100
committerDiggory Blake <diggsey@googlemail.com>2025-07-05 17:24:22 +0100
commit214311beb05883c5d07200d28cc926e2acfbaaad (patch)
tree73f0450f0ed4b04d60b011f623324105a5bb0062
parent7b1674d5d0f395bd49434f0cec2f74c26b378362 (diff)
Make tempfile a normal dependency
-rw-r--r--Cargo.toml2
-rw-r--r--src/lib.rs6
2 files changed, 3 insertions, 5 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 05b0431b6ba..193348d1ef6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,6 +23,7 @@ default = ["master"]
 
 [dependencies]
 object = { version = "0.37.0", default-features = false, features = ["std", "read"] }
+tempfile = "3.20"
 gccjit = "2.7"
 #gccjit = { git = "https://github.com/rust-lang/gccjit.rs" }
 
@@ -32,7 +33,6 @@ gccjit = "2.7"
 [dev-dependencies]
 boml = "0.3.1"
 lang_tester = "0.8.0"
-tempfile = "3.20"
 
 [profile.dev]
 # By compiling dependencies with optimizations, performing tests gets much faster.
diff --git a/src/lib.rs b/src/lib.rs
index 56afdd55bf9..1a6eec0ed0b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -26,11 +26,9 @@
 #![deny(clippy::pattern_type_mismatch)]
 #![allow(clippy::needless_lifetimes, clippy::uninlined_format_args)]
 
-// Some "regular" crates we want to share with rustc
+// These crates are pulled from the sysroot because they are part of
+// rustc's public API, so we need to ensure version compatibility.
 extern crate smallvec;
-// FIXME(antoyo): clippy bug: remove the #[allow] when it's fixed.
-#[allow(unused_extern_crates)]
-extern crate tempfile;
 #[macro_use]
 extern crate tracing;