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 πŸ”’
asm
assert πŸ”’
autodiff πŸ”’
This module contains the implementation of the #[autodiff] attribute. Currently our linter isn’t smart enough to see that each import is used in one of the two configs (autodiff enabled or disabled), so we have to add cfg’s to each import. FIXME(ZuseZ4): Remove this once we have a smarter linter.
cfg πŸ”’
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.
cfg_accessible πŸ”’
Implementation of the #[cfg_accessible(path)] attribute macro.
cfg_eval πŸ”’
cmdline_attrs
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 πŸ”’
proc_macro_harness
source_util πŸ”’
standard_library_imports
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.
test_harness
trace_macros πŸ”’
util

Statics§

DEFAULT_LOCALE_RESOURCE
Raw content of Fluent resource for this crate, generated by fluent_messages macro, imported by rustc_driver to include all crates’ resources in one bundle.

Functions§

register_builtin_macros