about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-16 17:51:24 +0100
committerGitHub <noreply@github.com>2023-02-16 17:51:24 +0100
commit04128982ffbf2609a94fa6b7786fe98c85c6b113 (patch)
tree5140daf1fd6a95f757ac3ffbf5921fe101215081 /compiler/rustc_codegen_llvm/src
parentf65c6e416c6f401c332149da8f8ad1d7b8a218a7 (diff)
parent374f798ad2f10280f75a3561f2dc9449ccb5e5fe (diff)
downloadrust-04128982ffbf2609a94fa6b7786fe98c85c6b113.tar.gz
rust-04128982ffbf2609a94fa6b7786fe98c85c6b113.zip
Rollup merge of #108057 - GuillaumeGomez:fix-reexport-attr-merge, r=notriddle
Prevent some attributes from being merged with others on reexports

Final fix for https://github.com/rust-lang/rust/issues/59368.

As discussed on zulip [here](https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/Filtering.20sub.20attributes.20in.20ast.3A.3AAttribute), we need to clone the `Attribute` to be able to filter some parts of it. Then we need to go through the attributes to able to only keep what we want (everything except a few attributes in short).

As for the second commit, when I wrote the test, I realized that the code to traverse all reexports one by one to collect all their attributes was not completely working so I fixed the few issues remaining.

r? `@notriddle`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions