diff options
| author | bors <bors@rust-lang.org> | 2025-05-31 14:56:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-05-31 14:56:33 +0000 |
| commit | 852f15c0f146fc292c9b20f2a8f44c1f671d7845 (patch) | |
| tree | 5ed1a4217e7273d1560d5d6c1db1657f0b00fc9a /library/std/src/num | |
| parent | 738c08b63c4f9e3ebdaec5eece7b6fbc354f6467 (diff) | |
| parent | b374adc9dbeec2cc969723dbfcb5c8ee990953bd (diff) | |
| download | rust-852f15c0f146fc292c9b20f2a8f44c1f671d7845.tar.gz rust-852f15c0f146fc292c9b20f2a8f44c1f671d7845.zip | |
Auto merge of #141685 - orlp:inplace-tls-drop, r=joboet
Do not move thread-locals before dropping Fixes rust-lang/rust#140816. I also (potentially) improved the speed of `get_or_init` a bit by having an explicit hot/cold path. We still move the value before dropping in the event of a recursive initialization (leading to double-initialization with one value being silently dropped). This is the old behavior, but changing this to panic instead would involve changing tests and also the other OS-specific `thread_local/os.rs` implementation, which is more than I'd like in this PR.
Diffstat (limited to 'library/std/src/num')
0 files changed, 0 insertions, 0 deletions
