std: Stabilize the thread_local_const_init
feature
This commit is intended to follow the stabilization disposition of the FCP that has now finished in #84223. This stabilizes the ability to flag thread local initializers as `const` expressions which enables the macro to generate more efficient code for accessing it, notably removing runtime checks for initialization. More information can also be found in #84223 as well as the tests where the feature usage was removed in this PR. Closes #84223
This commit is contained in:
parent
8b954910c5
commit
a0c959750a
10 changed files with 1 additions and 34 deletions
|
@ -216,10 +216,7 @@
|
|||
// std may use features in a platform-specific way
|
||||
#![allow(unused_features)]
|
||||
#![feature(rustc_allow_const_fn_unstable)]
|
||||
#![cfg_attr(
|
||||
test,
|
||||
feature(internal_output_capture, print_internals, update_panic_count, thread_local_const_init)
|
||||
)]
|
||||
#![cfg_attr(test, feature(internal_output_capture, print_internals, update_panic_count))]
|
||||
#![cfg_attr(
|
||||
all(target_vendor = "fortanix", target_env = "sgx"),
|
||||
feature(slice_index_methods, coerce_unsized, sgx_platform)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue