rust/library/std
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
..
benches Fix import in bench for wasm 2025-02-12 14:44:30 -08:00
src Rollup merge of #146281 - Jules-Bertholet:static-align-thread-local, r=Mark-Simulacrum 2025-10-02 10:27:48 +02:00
tests Rollup merge of #146281 - Jules-Bertholet:static-align-thread-local, r=Mark-Simulacrum 2025-10-02 10:27:48 +02:00
build.rs std: add support for armv7a-vex-v5 target 2025-09-24 12:10:15 -05:00
Cargo.toml Rollup merge of #145973 - vexide:vex-std, r=tgross35 2025-09-25 20:31:53 +10:00