-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Support #[rustc_align_static]
inside thread_local!
#146281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support #[rustc_align_static]
inside thread_local!
#146281
Conversation
We need a different attribute than `rustc_align` because unstable attributes are tied to their feature (we can't have two unstable features use the same unstable attribute). Otherwise this uses all of the same infrastructure as `#[rustc_align]`.
Some changes occurred in compiler/rustc_attr_parsing
Some changes occurred in compiler/rustc_codegen_gcc
Some changes occurred to the CTFE machinery
Some changes occurred to the CTFE / Miri interpreter
cc @rust-lang/miri, @RalfJung, @oli-obk, @lcnr
Some changes occurred in compiler/rustc_passes/src/check_attr.rs
Some changes occurred to the CTFE / Miri interpreter
cc @rust-lang/miri
The Miri subtree was changed
cc @rust-lang/miri
67db3cb
to
dd3475c
Compare
Uh oh!
There was an error while loading. Please reload this page.
Tracking issue: #146177
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
Blocked on #146178; @rustbot blocked