Skip to content

AutoDelete: Add move constructor#14682

Merged
edolstra merged 2 commits intomasterfrom
autodelete-move
Dec 1, 2025
Merged

AutoDelete: Add move constructor#14682
edolstra merged 2 commits intomasterfrom
autodelete-move

Conversation

@edolstra
Copy link
Member

@edolstra edolstra commented Dec 1, 2025

Motivation

Previously, moving AutoDelete would quietly perform the deletion twice (especially bad if the original is a temporary, since then the path is destroyed while it's still needed).

Taken from DeterminateSystems#282. (While cherry-picking I noticed that @xokdvium just did 40e3f5c.)

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

Co-authored-by: Sergei Zimmerman <sergei@zimmerman.foo>
@edolstra edolstra enabled auto-merge December 1, 2025 12:47
@edolstra edolstra added this pull request to the merge queue Dec 1, 2025
Merged via the queue into master with commit 18e31d4 Dec 1, 2025
20 checks passed
@edolstra edolstra deleted the autodelete-move branch December 1, 2025 14:23
@edolstra edolstra mentioned this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants