Expand description
The compiler code necessary to support the cfg! extension, which expands to
a literal true or false based on whether the given cfg matches the
current compilation environment.
Re-exportsยง
use rustc_ast::tokenstream::TokenStream;๐use rustc_ast::AttrStyle;๐use rustc_ast::token;๐use rustc_attr_ir::target::AstTarget;๐use rustc_attr_ir::target::Target;๐use rustc_attr_ir::AttrPath;๐use rustc_attr_ir::CfgEntry;๐use rustc_attr_parsing::parser::AllowExprMetavar;๐use rustc_attr_parsing::parser::MetaItemOrLitParser;๐use rustc_attr_parsing as attr;๐use rustc_attr_parsing::AttributeParser;๐use rustc_attr_parsing::AttributeSafety;๐use rustc_attr_parsing::CFG_TEMPLATE;๐use rustc_attr_parsing::ParsedDescription;๐use rustc_attr_parsing::ShouldEmit;๐use rustc_attr_parsing::parse_cfg_entry;๐use rustc_expand::base::DummyResult;๐use rustc_expand::base::ExpandResult;๐use rustc_expand::base::ExtCtxt;๐use rustc_expand::base::MacEager;๐use rustc_expand::base::MacroExpanderResult;๐use rustc_parse::exp;๐use rustc_parse::parser::Recovery;๐use rustc_span::ErrorGuaranteed;๐use rustc_span::Span;๐use rustc_span::sym;๐use crate::diagnostics;๐
Functionsยง
- expand_
cfg ๐ - parse_
cfg ๐