Module 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 🔒
record_defaulted_array 🔒

Structs§

AnalyzeAttrState 🔒
EncodeContext 🔒
EncodedMetadata

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_metadata
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 🔒
rendered_const
Build a textual representation of an unevaluated constant expression.
should_encode_attrs 🔒
should_encode_const 🔒
should_encode_constness 🔒
should_encode_expn_that_defined 🔒
should_encode_fn_impl_trait_in_trait 🔒
should_encode_fn_sig 🔒
should_encode_generics 🔒
should_encode_mir 🔒
Whether we should encode MIR. Return a pair, resp. for CTFE and for LLVM.
should_encode_span 🔒
should_encode_stability 🔒
should_encode_type 🔒
should_encode_variances 🔒
should_encode_visibility 🔒