rust/compiler/rustc_resolve/src
bors 481db40311 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
2022-05-12 12:48:30 +00:00
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late only_local: always check for misuse 2022-05-10 12:07:35 +02:00
access_levels.rs resolve/metadata: Stop encoding macros as reexports 2022-02-24 22:55:40 +03:00
build_reduced_graph.rs Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
check_unused.rs span: move MultiSpan 2022-04-05 07:01:00 +01:00
def_collector.rs Visit generics inside visit_fn. 2022-04-17 11:03:33 +02:00
diagnostics.rs Auto merge of #96150 - est31:unused_macro_rules, r=petrochenkov 2022-05-12 00:08:08 +00:00
ident.rs Use a yes/no enum instead of a bool. 2022-05-02 15:39:13 +00:00
imports.rs rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
late.rs Rollup merge of #96557 - nbdd0121:const, r=oli-obk 2022-05-06 20:05:37 +02:00
lib.rs Auto merge of #96150 - est31:unused_macro_rules, r=petrochenkov 2022-05-12 00:08:08 +00:00
macros.rs Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00