Module rustc_metadata::rmeta::encoder
source · Macros§
- empty_proc_macro πIf the current crate is a proc-macro, returns early with
LazyArray::default()
. This is useful for skipping the encoding of things that arenβt needed for proc-macro crates. - encoder_methods π
- record π
- record_array π
Structs§
- AnalyzeAttrState π
- EncodeContext π
Functions§
- analyze_attr πReturns whether an attribute needs to be recorded in metadata, that is, if itβs usable and useful in downstream crates. Local-only attributes are an obvious example, but some rustdoc-specific attributes can equally be of use while documenting the current crate only.
- bytes_needed π
- encode_root_position π
- prefetch_mir πUsed to prefetch queries which will be needed later by metadata encoding. Only a subset of the queries are actually prefetched to keep this code smaller.
- Build a textual representation of an unevaluated constant expression.
- should_encode_attrs π
- should_encode_const π
- should_encode_fn_sig π
- should_encode_mir πWhether we should encode MIR. Return a pair, resp. for CTFE and for LLVM.
- should_encode_span π
- should_encode_type π