mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 17:40:16 +00:00
Use `drop_guard` in some places in {core,alloc,std}
- Tracking issue: rust-lang/rust#144426
- Will conflict with rust-lang/rust#161520
- rust-lang/rust#161550 would also be cool occasionally
Didn't touch the places where manual `impl Drop`s had `#[inline]` on their `fn drop` or where the guard type had other `impl`s beside `Drop` and/or was named a lot.
No LLMs used, only pure human slop.