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
Specifically, it's kind of sketchy that the static allocations inherit the codegen flags from their parent statics -- in this case (see the issue @matthiaskrgr linked), we have an static allocation who inherits the #[no_mangle] flag from the parent; however, the allocation doesn't actually have an item name to use for #[no_mangle].
This should also affect other attrs like #[export_name], #[link_name]...
Activity
matthiaskrgr commentedon Mar 31, 2024
might be related to #123243
compiler-errors commentedon Apr 1, 2024
Yep, this is due to #121644, cc @oli-obk.
Specifically, it's kind of sketchy that the static allocations inherit the codegen flags from their parent statics -- in this case (see the issue @matthiaskrgr linked), we have an static allocation who inherits the
#[no_mangle]flag from the parent; however, the allocation doesn't actually have an item name to use for#[no_mangle].This should also affect other attrs like
#[export_name],#[link_name]...I'm gonna put up a fix PR.
Auto merge of rust-lang#123310 - compiler-errors:nested-static-codege…
cuviper commentedon Apr 12, 2024
Backported in #123466.