mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
9212f4070e
`#[thread_local]` allows us to maintain a per-thread list of destructors. This also avoids the need to synchronize global data (which is particularly tricky within the TLS callback function).