about summary refs log tree commit diff
diff options
context:
space:
mode:
authorantoyo <antoyo@users.noreply.github.com>2025-06-11 18:39:37 -0400
committerGitHub <noreply@github.com>2025-06-11 18:39:37 -0400
commitacfb0460b8518057cbc4bfdc979e8624c6606d68 (patch)
treefbba7dd46a075961297894c4f9f733121d43de41
parentb15114f46b46802cb4e24d9e6e4b65ee91b8233b (diff)
parent45e23b21ad23ca946ba39298b12cfccfd46146a3 (diff)
downloadrust-acfb0460b8518057cbc4bfdc979e8624c6606d68.tar.gz
rust-acfb0460b8518057cbc4bfdc979e8624c6606d68.zip
Merge pull request #706 from emmanuel-ferdman/master
Use `tempfile::TempDir::keep()` instead of deprecated `into_path()`
-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);