Crate rustc_builtin_macros
source Β·Expand description
This crate contains implementations of built-in macros and other code generating facilities injecting code into the crate before it is lowered to HIR.
Modules§
- alloc_error_handler π
- assert π
- cfg πThe compiler code necessary to support the cfg! extension, which expands to a literal
true
orfalse
based on whether the given cfg matches the current compilation environment. - cfg_accessible πImplementation of the
#[cfg_accessible(path)]
attribute macro. - cfg_eval π
- Attributes injected into the crate root from command line using
-Z crate-attr
. - compile_error π
- concat π
- concat_bytes π
- concat_idents π
- derive π
- deriving πThe compiler code necessary to implement the
#[derive]
extensions. - edition_panic π
- env π
- errors π
- format π
- format_foreign π
- global_allocator π
- log_syntax π
- pattern_type π
- source_util π
- test πThe expansion from a test function to the appropriate test struct for libtest Ideally, this code would be in libtest but for efficiency and error messages it lives here.
- trace_macros π
Statics§
- Raw content of Fluent resource for this crate, generated by
fluent_messages
macro, imported byrustc_driver
to include all cratesβ resources in one bundle.