rust/tests
bors 3d5528c287 Auto merge of #123310 - compiler-errors:nested-static-codegen-attrs, r=oli-obk
Don't inherit codegen attrs from parent static

Putting this up partly for discussion and partly for review. Specifically, in #121644, `@oli-obk` designed a system that creates new static items for representing nested allocations in statics. However, in that PR, oli made it so that these statics inherited the codegen attrs from the parent.

This causes problems such as colliding symbols with `#[export_name]` and ICEs with `#[no_mangle]` since these synthetic statics have no `tcx.item_name(..)`.

So the question is, is there any case where we *do* want to inherit codegen attrs from the parent? The only one that seems a bit suspicious is the thread-local attribute. And there may be some interesting interactions with the coverage attributes as well...

Fixes (after backport) #123274. Fixes #123243. cc #121644.

r? `@oli-obk` cc `@nnethercote` `@RalfJung` (reviewers on that pr)
2024-04-01 09:22:01 +00:00
..
assembly stabilize ptr.is_aligned, move ptr.is_aligned_to to a new feature gate 2024-03-29 19:59:46 -04:00
auxiliary
codegen Auto merge of #122976 - caibear:optimize_reserve_for_push, r=cuviper 2024-03-30 00:29:24 +00:00
codegen-units
coverage
coverage-run-rustdoc
debuginfo Add rust-lldb pretty printing for Path and PathBuf 2024-03-29 18:02:26 -06:00
incremental
mir-opt Add FileCheck directives to the new tests. 2024-03-30 18:11:41 +01:00
pretty
run-make Fix error message for env! when env var is not valid Unicode 2024-04-01 05:44:45 +01:00
run-make-fulldeps
run-pass-valgrind
rustdoc
rustdoc-gui
rustdoc-js
rustdoc-js-std
rustdoc-json
rustdoc-ui Add regression test for #123158 2024-03-28 11:09:08 +01:00
ui Auto merge of #123310 - compiler-errors:nested-static-codegen-attrs, r=oli-obk 2024-04-01 09:22:01 +00:00
ui-fulldeps Normalize the result of Fields::ty_with_args 2024-03-28 13:22:10 -07:00
COMPILER_TESTS.md