about summary refs log tree commit diff
path: root/compiler/rustc_attr_parsing/src/interface.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-08-28 03:06:52 +0000
committerbors <bors@rust-lang.org>2025-08-28 03:06:52 +0000
commit43a216604a7fc98deb0744513341fc0d09e461d4 (patch)
treef6fbed08eb5467fb33e308adb74e4d2843023fdd /compiler/rustc_attr_parsing/src/interface.rs
parentd36f964125163c2e698de5559efefb8217b8b7f0 (diff)
parent27d6005f7ae41c8da96dc77102e064b0d0a0fde1 (diff)
downloadrust-43a216604a7fc98deb0744513341fc0d09e461d4.tar.gz
rust-43a216604a7fc98deb0744513341fc0d09e461d4.zip
Auto merge of #145949 - jhpratt:rollup-smzd7tr, r=jhpratt
Rollup of 5 pull requests

Successful merges:

 - rust-lang/rust#145382 (Add assembly test for `-Zreg-struct-return` option)
 - rust-lang/rust#145746 (Fix STD build failing for target_os = "espidf")
 - rust-lang/rust#145826 (Use AcceptContext in AttribueParser::check_target)
 - rust-lang/rust#145894 (Ensure the coordinator thread terminates before its channels drop)
 - rust-lang/rust#145946 (Remove unnecessary `[dependencies.unicode-properties]` entries.)

r? `@ghost`
`@rustbot` modify labels: rollup
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 {