Skip to main content

Module macro_attrs

Module macro_attrs 

Source

Structsยง

AllowInternalUnsafeParser ๐Ÿ”’
CollapseDebugInfoParser ๐Ÿ”’
MacroEscapeParser ๐Ÿ”’
MacroExportParser ๐Ÿ”’
MacroUseParser ๐Ÿ”’
#[macro_use] attributes can either:
RustcProcMacroDeclsParser ๐Ÿ”’

Constantsยง

MACRO_USE_ALLOWED_TARGETS ๐Ÿ”’
MACRO_USE_TEMPLATE ๐Ÿ”’

Functionsยง

check_macro_only ๐Ÿ”’
#[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].