Re-exportsยง
use rustc_attr_ir::target::AstTarget;๐use rustc_attr_ir::MacroUseArgs;๐use rustc_attr_ir::find_attr;๐use rustc_feature::AttributeStability;๐use rustc_lint_defs::builtin::INVALID_MACRO_EXPORT_ARGUMENTS;๐use rustc_lint_defs::builtin::UNUSED_ATTRIBUTES;๐use rustc_structures::CollapseMacroDebuginfo;๐use crate::diagnostics::MacroExport;๐use crate::diagnostics::MacroOnlyAttribute;๐use super::prelude::*;๐
Structsยง
- Allow
Internal ๐Unsafe Parser - Collapse
Debug ๐Info Parser - Macro
Escape ๐Parser - Macro
Export ๐Parser - Macro
UseParser ๐ #[macro_use]attributes can either:- Rustc
Proc ๐Macro Decls Parser
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].