rust/library/std
Matthias Krüger e063d8a591
Rollup merge of #116172 - joboet:recursive_tls_initialization, r=dtolnay
Broaden the consequences of recursive TLS initialization

This PR updates the documentation of `LocalKey` to clearly disallow the behaviour described in [this comment](https://github.com/rust-lang/rust/issues/110897#issuecomment-1525738849). This allows using `OnceCell` for the lazy initialization of TLS variables, which panics on reentrant initialization instead of updating the value like TLS variables currently do.

``@rustbot`` label +T-libs-api
r? ``@m-ou-se``
2023-10-15 21:29:06 +02:00
..
benches mv std libs to library/ 2020-07-27 19:51:13 -05:00
src Rollup merge of #116172 - joboet:recursive_tls_initialization, r=dtolnay 2023-10-15 21:29:06 +02:00
tests Add data race test to std::env::{get, set} 2023-08-20 21:50:45 +02:00
build.rs Revert "Invoke backtrace-rs buildscript in std buildscript" 2023-10-13 13:43:00 -06:00
Cargo.toml Auto merge of #116527 - sthibaul:libc, r=Mark-Simulacrum 2023-10-15 15:17:17 +00:00