rust/library/std
bors 27529d5c25 Auto merge of #125525 - joboet:tls_accessor, r=cuviper
Make TLS accessors closures that return pointers

The current TLS macros generate a function that returns an `Option<&'static T>`. This is both risky as we lie about lifetimes, and necessitates that those functions are `unsafe`. By returning a `*const T` instead, the accessor function do not have safety requirements any longer and can be made closures without hassle. This PR does exactly that!

For native TLS, the closure approach makes it trivial to select the right accessor function at compile-time, which could result in a slight speed-up (I have the hope that the accessors are now simple enough for the MIR-inliner to kick in).
2024-06-04 05:03:52 +00:00
..
benches also test parts of std 2024-04-07 10:05:57 +02:00
src Auto merge of #125525 - joboet:tls_accessor, r=cuviper 2024-06-04 05:03:52 +00:00
tests Stop using the avx512er and avx512pf x86 target features 2024-05-24 20:12:42 +02:00
build.rs Move some expected cfgs to std build.rs as per Cargo recommandation 2024-05-23 16:08:31 +02:00
Cargo.toml Sync libstd deps with backtrace 2024-05-27 19:53:41 -07:00