about summary refs log tree commit diff
path: root/compiler/rustc_attr_parsing/src/interface.rs
diff options
context:
space:
mode:
authorSasha Pourcelot <sasha.pourcelot@protonmail.com>2025-08-24 20:26:27 +0200
committerSasha Pourcelot <sasha.pourcelot@protonmail.com>2025-08-27 09:56:20 +0200
commit2736c7461f6331bc674e974ac32f53846fd29a6f (patch)
treec44a1020f8659f046492ea9abbdc6efc4a770d09 /compiler/rustc_attr_parsing/src/interface.rs
parent269d5b56bcfdf2be82213e72ef9a2e4c592a8c6b (diff)
downloadrust-2736c7461f6331bc674e974ac32f53846fd29a6f.tar.gz
rust-2736c7461f6331bc674e974ac32f53846fd29a6f.zip
Use `AcceptContext` in `AttribueParser::check_target`
Diffstat (limited to 'compiler/rustc_attr_parsing/src/interface.rs')
-rw-r--r--compiler/rustc_attr_parsing/src/interface.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/rustc_attr_parsing/src/interface.rs b/compiler/rustc_attr_parsing/src/interface.rs
index a3558850ef3..0fe3c209421 100644
--- a/compiler/rustc_attr_parsing/src/interface.rs
+++ b/compiler/rustc_attr_parsing/src/interface.rs
@@ -273,14 +273,7 @@ impl<'sess, S: Stage> AttributeParser<'sess, S> {
                             (accept.accept_fn)(&mut cx, args);
                             if !matches!(cx.stage.should_emit(), ShouldEmit::Nothing) {
                                 Self::check_type(accept.attribute_type, target, &mut cx);
-                                self.check_target(
-                                    path.get_attribute_path(),
-                                    attr.span,
-                                    &accept.allowed_targets,
-                                    target,
-                                    target_id,
-                                    &mut emit_lint,
-                                );
+                                Self::check_target(&accept.allowed_targets, target, &mut cx);
                             }
                         }
                     } else {