pub(crate) fn check_macro_only(
cx: &FinalizeCheckContext<'_, '_>,
attr_span: Span,
)Expand description
#[allow_internal_unsafe] and #[allow_internal_unstable] may only be applied to macros.
Applying them to a function is only allowed if that function is a procedural macro, i.e. it
also carries #[proc_macro], #[proc_macro_attribute], or #[proc_macro_derive].