Module rustc_metadata::rmeta::encoder
source · Macros§
- empty_
proc_ πmacro If the current crate is a proc-macro, returns early withLazyArray::default()
. This is useful for skipping the encoding of things that arenβt needed for proc-macro crates. - encoder_
methods π - record π
- record_
array π
Structs§
- Analyze
Attr πState - Encode
Context π
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. - provide π
- 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