Re-exportsΒ§
use std::borrow::Borrow;πuse std::cell::RefCell;πuse std::collections::hash_map::Entry;πuse std::fs::File;πuse std::io::Read;πuse std::io::Seek;πuse std::io::SeekFrom;πuse std::io::Write;πuse std::ops::Deref;πuse std::path::Path;πuse std::path::PathBuf;πuse std::rc::Rc;πuse std::sync::Arc;πuse std::sync::Mutex;πuse rustc_attr_ir::AttributeKind;πuse rustc_attr_ir::EncodeCrossCrate;πuse rustc_attr_ir::find_attr;πuse rustc_data_structures::fingerprint::Fingerprint;πuse rustc_data_structures::fx::FxIndexMap;πuse rustc_data_structures::fx::FxIndexSet;πuse rustc_data_structures::memmap::Mmap;πuse rustc_data_structures::memmap::MmapMut;πuse rustc_data_structures::owned_slice::slice_owned;πuse rustc_data_structures::stable_hash::StableHash;πuse rustc_data_structures::stable_hash::StableHasher;πuse rustc_data_structures::sync::par_for_each_in;πuse rustc_data_structures::sync::par_join;πuse rustc_data_structures::temp_dir::MaybeTempDir;πuse rustc_data_structures::thousands::usize_with_underscores;πuse rustc_hir as hir;πuse rustc_hir::def_id::CRATE_DEF_ID;πuse rustc_hir::def_id::LOCAL_CRATE;πuse rustc_hir::def_id::LocalDefId;πuse rustc_hir::def_id::LocalDefIdSet;πuse rustc_hir::definitions::DefPathData;πuse rustc_hir_pretty::id_to_string;πuse rustc_index::IndexVec;πuse rustc_middle::dep_graph::WorkProduct;πuse rustc_middle::dep_graph::WorkProductId;πuse rustc_middle::hir::map::compute_hir_hash;πuse rustc_middle::middle::dependency_format::Linkage;πuse rustc_middle::mir::interpret;πuse rustc_middle::query::Providers;πuse rustc_middle::traits::specialization_graph;πuse rustc_middle::ty::AssocContainer;πuse rustc_middle::ty::codec::TyEncoder;πuse rustc_middle::ty::fast_reject;πuse rustc_middle::ty::fast_reject::TreatParams;πuse rustc_serialize::opaque::FileEncoder;πuse rustc_serialize::Decodable;πuse rustc_serialize::Decoder;πuse rustc_serialize::Encodable;πuse rustc_serialize::Encoder;πuse rustc_session::config::mitigation_coverage::DeniedPartialMitigation;πuse rustc_session::config::OptLevel;πuse rustc_session::config::OutputType;πuse rustc_session::config::TargetModifier;πuse rustc_span::def_id::CRATE_MOD_ID;πuse rustc_span::hygiene::HygieneEncodeContext;πuse rustc_span::hygiene::HygieneRemapper;πuse rustc_span::hygiene::HygieneRemappingResults;πuse rustc_span::hygiene::LocalExpnIdRemapper;πuse rustc_span::hygiene::SyntaxContextRemapper;πuse rustc_span::ByteSymbol;πuse rustc_span::ExternalSource;πuse rustc_span::FileName;πuse rustc_span::LocalExpnId;πuse rustc_span::SourceFile;πuse rustc_span::SpanData;πuse rustc_span::SpanEncoder;πuse rustc_span::StableSourceFileId;πuse rustc_span::Symbol;πuse rustc_span::SyntaxContext;πuse rustc_span::bug;πuse rustc_span::span_bug;πuse rustc_structures::CrateType;πuse tracing::debug;πuse tracing::instrument;πuse tracing::instrument;πuse tracing::trace;πuse twox_hash::XxHash3_128;πuse crate::diagnostics::FailCreateFileEncoder;πuse crate::diagnostics::FailWriteFile;πuse crate::eii::EiiMapEncodedKeyValue;πuse crate::rmeta::remapped_def_id::RemappedRawDefId;πuse crate::rmeta::*;π
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 π
StructsΒ§
- Analyze
Attr πState - Encode
Context π - Encoded
Metadata
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_
crate_ πhash - encode_
metadata - encode_
root_ πposition - encode_
unhashed_ π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_ 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 - with_
encode_ πmetadata_ header