rust/tests
bors cb9aa8c9c1 Auto merge of #110861 - m-ou-se:thread-local-restructure, r=workingjubilee
Restructure and rename std thread_local internals to make it less of a maze

Every time I try to work on std's thread local internals, it feels like I'm trying to navigate a confusing maze made of macros, deeply nested modules, and types with multiple names/aliases. Time to clean it up a bit.

This PR:

- Exports `Key` with its own name (`Key`), instead of `__LocalKeyInner`
- Uses `pub macro` to put `__thread_local_inner` into a (unstable, hidden) module, removing `#[macro_export]`, removing it from the crate root.
- Removes the `__` from `__thread_local_inner`.
- Removes a few unnecessary `allow_internal_unstable` features from the macros
- Removes the `libstd_thread_internals` feature. (Merged with `thread_local_internals`.)
    - And removes it from the unstable book
- Gets rid of the deeply nested modules for the `Key` definitions (`mod fast` / `mod os` / `mod statik`).
- Turns a `#[cfg]` mess into a single `cfg_if`, now that there's no `#[macro_export]` anymore that breaks with `cfg_if`.
- Simplifies the `cfg_if` conditions to not repeat the conditions.
- Removes useless `normalize-stderr-test`, which were left over from when the `Key` types had different names on different platforms.
- Removes a seemingly unnecessary `realstd` re-export on `cfg(test)`.

This PR changes nothing about the thread local implementation. That's for a later PR. (Which should hopefully be easier once all this stuff is a bit cleaned up.)
2023-04-26 22:07:17 +00:00
..
assembly Add loongarch64 asm! support 2023-04-25 14:15:31 +08:00
auxiliary
codegen Rollup merge of #110706 - scottmcm:transmute_unchecked, r=oli-obk 2023-04-24 07:53:25 +02:00
codegen-units
debuginfo Auto merge of #103093 - rytheo:linked-list-alloc-api, r=Mark-Simulacrum 2023-04-25 11:34:58 +00:00
incremental Turn on ConstDebugInfo pass. 2023-04-22 23:41:48 +02:00
mir-opt Auto merge of #110822 - scottmcm:lower-offset-to-mir, r=compiler-errors 2023-04-26 15:52:33 +00:00
pretty
run-make Revert "Remove #[alloc_error_handler] from the compiler and library" 2023-04-25 00:08:35 +02:00
run-make-fulldeps
run-pass-valgrind
rustdoc Rollup merge of #110798 - ozkanonur:rustdoc-unused-extern-crates, r=jyn514 2023-04-26 18:51:42 +02:00
rustdoc-gui rustdoc: remove unneeded handleKey from settings.js 2023-04-21 16:42:23 -07:00
rustdoc-js
rustdoc-js-std
rustdoc-json
rustdoc-ui Rollup merge of #110329 - aDotInTheVoid:json-inline-again, r=jyn514 2023-04-26 01:55:51 -05:00
ui Auto merge of #110861 - m-ou-se:thread-local-restructure, r=workingjubilee 2023-04-26 22:07:17 +00:00
ui-fulldeps
COMPILER_TESTS.md