Skip to content

Add defer - #56

Open
syphar wants to merge 1 commit into
rust-lang:mainfrom
syphar:defer
Open

syphar wants to merge 1 commit into
rust-lang:mainfrom
syphar:defer

Conversation

@syphar

@syphar syphar commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Rust 1.100 stabilizes core::mem::DropGuard. let _guard = DropGuard::new((), |()| ...); replaces both the defer function and the defer! macro.

Per CONTRIBUTING.md, @andrewhickman, maintainer of defer, should have the opportunity to comment.

Related: #54, #55

This was referenced Nov 27, 2026

This branch has not been deployed

No deployments
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.

1 participant