about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorJonathan Brouwer <jonathantbrouwer@gmail.com>2025-08-09 20:33:10 +0200
committerJonathan Brouwer <jonathantbrouwer@gmail.com>2025-08-14 18:11:56 +0200
commite7ef23e90e5b63e86bd77061ab92b86190a4eb3c (patch)
tree04ee2497bd3c93c463a239f6291a20c4a42c32e5 /compiler/rustc_resolve/src
parent106731f714ddce004f7dde265b4528ed1cf0c320 (diff)
downloadrust-e7ef23e90e5b63e86bd77061ab92b86190a4eb3c.tar.gz
rust-e7ef23e90e5b63e86bd77061ab92b86190a4eb3c.zip
Pass the target type down to `parse_attribute_list`
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/def_collector.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/def_collector.rs b/compiler/rustc_resolve/src/def_collector.rs
index 1e4513eb787..14538df8187 100644
--- a/compiler/rustc_resolve/src/def_collector.rs
+++ b/compiler/rustc_resolve/src/def_collector.rs
@@ -5,6 +5,7 @@ use rustc_ast::*;
 use rustc_attr_parsing::{AttributeParser, Early, OmitDoc, ShouldEmit};
 use rustc_expand::expand::AstFragment;
 use rustc_hir as hir;
+use rustc_hir::Target;
 use rustc_hir::def::{CtorKind, CtorOf, DefKind};
 use rustc_hir::def_id::LocalDefId;
 use rustc_middle::span_bug;
@@ -138,6 +139,7 @@ impl<'a, 'ra, 'tcx> visit::Visitor<'a> for DefCollector<'a, 'ra, 'tcx> {
                     &i.attrs,
                     i.span,
                     i.id,
+                    Target::MacroDef,
                     OmitDoc::Skip,
                     std::convert::identity,
                     |_l| {