diff options
| author | Jonathan Brouwer <jonathantbrouwer@gmail.com> | 2025-08-09 20:40:47 +0200 |
|---|---|---|
| committer | Jonathan Brouwer <jonathantbrouwer@gmail.com> | 2025-08-14 18:18:42 +0200 |
| commit | 5245c399720cf4f2414c2a4d9b4a5007ad942956 (patch) | |
| tree | d8b6e6028519343324206b6308fb5fd5c691c1cd /compiler/rustc_builtin_macros/src/proc_macro_harness.rs | |
| parent | 35e04b67a6eeb1603d67f4220b05da9c1b77eed7 (diff) | |
| download | rust-5245c399720cf4f2414c2a4d9b4a5007ad942956.tar.gz rust-5245c399720cf4f2414c2a4d9b4a5007ad942956.zip | |
Remove the old target checking logic
Diffstat (limited to 'compiler/rustc_builtin_macros/src/proc_macro_harness.rs')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/proc_macro_harness.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/compiler/rustc_builtin_macros/src/proc_macro_harness.rs b/compiler/rustc_builtin_macros/src/proc_macro_harness.rs index f440adf6cf0..6ac3e17503d 100644 --- a/compiler/rustc_builtin_macros/src/proc_macro_harness.rs +++ b/compiler/rustc_builtin_macros/src/proc_macro_harness.rs @@ -231,12 +231,7 @@ impl<'a> Visitor<'a> for CollectProcMacros<'a> { let fn_ident = if let ast::ItemKind::Fn(fn_) = &item.kind { fn_.ident } else { - self.dcx - .create_err(errors::AttributeOnlyBeUsedOnBareFunctions { - span: attr.span, - path: &pprust::path_to_string(&attr.get_normal_item().path), - }) - .emit(); + // Error handled by general target checking logic return; }; |
