rust/compiler/rustc_resolve/src
Matthias Krüger 5f6cb2c552
Rollup merge of #91111 - cjgillot:hir-no-lower-attrs, r=michaelwoerister
Do not visit attributes in `ItemLowerer`.

By default, AST visitors visit expressions that appear in key-value attributes.
Those expressions should not be lowered to HIR, as they do not correspond to actually compiled code.

Since an attribute cannot produce meaningful HIR, just skip them altogether.

Fixes https://github.com/rust-lang/rust/issues/81886
Fixes https://github.com/rust-lang/rust/issues/90873
r? `@michaelwoerister`
2021-11-25 15:05:38 +01:00
..
late rustc: Remove #[rustc_synthetic] 2021-11-18 14:32:29 +08:00
build_reduced_graph.rs Shorten Span of unused macro lints 2021-11-11 08:04:02 +01:00
check_unused.rs Add ty::Visibility::is_public() 2021-11-09 18:35:00 -08:00
def_collector.rs Record call_site parent for macros. 2021-09-10 20:19:25 +02:00
diagnostics.rs Fix case where ICE #90878 was still triggered by a leading newline 2021-11-16 22:16:47 +01:00
imports.rs Rollup merge of #90628 - ken-matsui:clarify-error-messages-caused-by-reexporting-pub-crate-visibility-to-outside, r=oli-obk 2021-11-20 10:21:13 +01:00
late.rs Do not visit attributes in LateResolutionVisitor. 2021-11-25 00:24:04 +01:00
lib.rs Stabilize format_args_capture 2021-11-15 10:14:29 +01:00
macros.rs Suggestion to wrap inner types using allocator_api in tuple 2021-11-24 00:24:13 +09:00