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
orfalse
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 byrustc_driver
to include all cratesβ resources in one bundle.