You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
`thread_local!` with `const` initializer generates slightly inefficient but more or or less good code ([issue in rust](rust-lang/rust#104033)) and roughtly equivalent to hack done here before.
`#[thread_local]` is no longer needed (earlier this was not possible because `thread_local!` `const` initializer was implemented after this code was implemented.)
Now we are down to four features preventing using starlark-rust on stable:
```
#![cfg_attr(rust_nightly, feature(const_type_id))]
#![cfg_attr(rust_nightly, feature(core_intrinsics))]
#![feature(const_mut_refs)]
#![feature(generic_associated_types)]
#![feature(maybe_uninit_write_slice)]
#![feature(ptr_metadata)]
```
Reviewed By: ndmitchell
Differential Revision: D41063194
fbshipit-source-id: 2d2e340c987676887c4f185bd563ac5cb90749f0
0 commit comments