]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #91355 - alexcrichton:stabilize-thread-local-const, r=m-ou-se
authorMatthias Krüger <matthias.krueger@famsik.de>
Sat, 4 Dec 2021 23:38:00 +0000 (00:38 +0100)
committerGitHub <noreply@github.com>
Sat, 4 Dec 2021 23:38:00 +0000 (00:38 +0100)
commit23012b5200ec78dc519969b34c0342bfa53ea3c4
tree54770a648e163aff341732a456229523c0ea32e9
parent4af985ac004fc0578cc6102f8e47844c227d0967
parenta0c959750abec28bb875be492c5f0532920a8907
Rollup merge of #91355 - alexcrichton:stabilize-thread-local-const, r=m-ou-se

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
compiler/rustc_span/src/lib.rs
library/std/src/lib.rs
library/std/src/thread/local.rs