Skip to main content

Module macro_attrs

Module macro_attrs 

Source

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ยง

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].