about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmmanuel Ferdman <emmanuelferdman@gmail.com>2025-06-11 14:11:19 -0700
committerEmmanuel Ferdman <emmanuelferdman@gmail.com>2025-06-11 14:11:19 -0700
commit45e23b21ad23ca946ba39298b12cfccfd46146a3 (patch)
treefbba7dd46a075961297894c4f9f733121d43de41
parentb15114f46b46802cb4e24d9e6e4b65ee91b8233b (diff)
downloadrust-45e23b21ad23ca946ba39298b12cfccfd46146a3.tar.gz
rust-45e23b21ad23ca946ba39298b12cfccfd46146a3.zip
Use `tempfile::TempDir::keep()` instead of deprecated `into_path()`
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 66e9ce4627c..93c03fbaace 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -208,7 +208,7 @@ impl CodegenBackend for GccCodegenBackend {
         #[cfg(not(feature = "master"))]
         {
             let temp_dir = TempDir::new().expect("cannot create temporary directory");
-            let temp_file = temp_dir.into_path().join("result.asm");
+            let temp_file = temp_dir.keep().join("result.asm");
             let check_context = Context::default();
             check_context.set_print_errors_to_stderr(false);
             let _int128_ty = check_context.new_c_type(CType::UInt128t);