rust/library/std/tests
Matthias Krüger 92aac1bdf6
Rollup merge of #146281 - Jules-Bertholet:static-align-thread-local, r=Mark-Simulacrum
Support `#[rustc_align_static]` inside `thread_local!`

Tracking issue: rust-lang/rust#146177

```rust
thread_local! {
    #[rustc_align_static(64)]
    static SO_ALIGNED: u64 = const { 0 };
}
```

This increases the amount of recursion the macro performs (once per attribute in addition to the previous once per item), making it easier to hit the recursion limit. I’ve added workarounds to limit the impact in the case of long doc comments, but this still needs a crater run just in case.

r? libs

``@rustbot`` label A-attributes A-macros A-thread-locals F-static_align T-libs
2025-10-02 10:27:48 +02:00
..
common std: get rid of sys_common::io 2025-02-07 16:54:07 +01:00
floats add approx_delta to all gamma tests 2025-09-09 09:49:48 +02:00
sync update doc comment 2025-09-11 13:08:44 -04:00
thread_local setup CI and tidy to use typos for spellchecking and fix few typos 2025-07-03 10:51:06 +03:00
builtin-clone.rs Run tidy on tests 2024-04-28 18:04:25 -04:00
create_dir_all_bare.rs Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
env.rs Remove unnecessary parentheses in assert!s 2025-08-10 21:59:04 +00:00
env_modify.rs library: Migrate from cfg_if to cfg_select 2025-08-16 05:28:31 -07:00
eq-multidispatch.rs Run tidy on tests 2024-04-28 18:04:25 -04:00
error.rs Move std::error unit tests to integration tests 2025-01-26 10:28:04 +00:00
istr.rs Remove some unnecessary parens in assert! conditions 2025-02-06 22:28:44 +00:00
log-knows-the-names-of-variants-in-std.rs Run tidy on tests 2024-04-28 18:04:25 -04:00
minmax-stability-issue-23687.rs Run tidy on tests 2024-04-28 18:04:25 -04:00
num.rs Move std::num unit tests to integration tests 2025-01-26 10:28:04 +00:00
panic.rs Move std::panic unit tests to integration tests 2025-01-26 10:28:04 +00:00
path.rs Rollup merge of #142506 - clarfonthey:path-trailing-sep, r=joboet 2025-09-30 20:46:44 +02:00
pipe_subprocess.rs Stablize feature anonymous_pipe 2025-03-14 00:52:45 +11:00
process_spawning.rs Fix test suite in iOS/tvOS/watchOS/visionOS simulator 2025-09-19 13:55:03 +02:00
run-time-detect.rs make tidy-alphabetical use a natural sort 2025-06-25 22:52:38 +02:00
seq-compare.rs Remove some unnecessary parens in assert! conditions 2025-02-06 22:28:44 +00:00
slice-from-array-issue-113238.rs Move various stdlib tests to library/std/tests 2024-04-28 16:10:12 -04:00
switch-stdout.rs Mark extern blocks as unsafe 2025-02-09 17:11:13 +00:00
thread.rs Support #[rustc_align_static] inside thread_local! 2025-09-26 13:51:09 -04:00
time.rs Repro duration_since regression from issue 146228 2025-09-24 21:07:26 +01:00
type-name-unsized.rs Rename test for issue 21058 2024-05-05 10:47:12 -04:00
volatile-fat-ptr.rs Move various stdlib tests to library/std/tests 2024-04-28 16:10:12 -04:00
win_delete_self.rs ignore win_delete_self test in Miri 2025-02-10 08:08:32 +01:00
windows.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00