Skip to content

Use tempfile::TempDir::keep() instead of deprecated into_path() #14784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025

Conversation

samueltardieu
Copy link
Contributor

tempfile has deprecated TempDir::into_path() (replacing it by TempDir::keep() between version 3.3 which Clippy required and version 3.20 which is the latest semver-compatible version. Since Clippy doesn't use a Cargo.lock file, the latest version of tempfile is used which leads to CI failure.

changelog: none

r? @flip1995

`tempfile` has deprecated `TempDir::into_path()` (replacing it by
`TempDir::keep()`) between version `3.3` which Clippy required and version
`3.20.0` which is the latest semver-compatible version. Since Clippy
doesn't use a `Cargo.lock` file, the latest version of `tempfile` is
used which leads to CI failure.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 12, 2025
This was referenced May 12, 2025
@samueltardieu
Copy link
Contributor Author

I've also started a discussion on Zulip for handling this in the future.

@flip1995 flip1995 added this pull request to the merge queue May 12, 2025
Merged via the queue into rust-lang:master with commit 48337da May 12, 2025
11 checks passed
@samueltardieu samueltardieu deleted the push-xuuwlsnnykmy branch May 12, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants