about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-05-12 12:48:30 +0000
committerbors <bors@rust-lang.org>2022-05-12 12:48:30 +0000
commit7161a708c627c423fbef491bfacb16b6a0f022ba (patch)
tree0fd698fb5fab22b26b743c103b215bbbb028b5db /src/test/codegen/src-hash-algorithm
parent31825326e5bb0a19bfc2f1c2b862787c43c0ee5f (diff)
parent107ee4067414dc02da091ce49fb491695bbb52f0 (diff)
downloadrust-7161a708c627c423fbef491bfacb16b6a0f022ba.tar.gz
rust-7161a708c627c423fbef491bfacb16b6a0f022ba.zip
Auto merge of #95562 - lcnr:attr-no-encode, r=davidtwco
don't encode only locally used attrs

Part of https://github.com/rust-lang/compiler-team/issues/505.

We now filter builtin attributes before encoding them in the crate metadata in case they should only be used in the local crate. To prevent accidental misuse `get_attrs` now requires the caller to state which attribute they are interested in. For places where that isn't trivially possible, I've added a method `fn get_attrs_unchecked` which I intend to remove in a followup PR.

After this pull request landed, we can then slowly move all attributes to only be used in the local crate while being certain that we don't accidentally try to access them from extern crates.

cc https://github.com/rust-lang/rust/pull/94963#issuecomment-1082924289
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions