Crate rustc_save_analysis[−][src]
Modules
Write the output of rustc’s analysis to an implementor of Dump.
HIR walker for walking the contents of nodes.
Types for tracking pieces of source code within a crate.
Defines how the compiler represents types internally.
Inspection and manipulation of the process’s environment.
Macros
Constructs an event at the debug level.
Constructs an event at the error level.
Constructs an event at the info level.
Derive macro generating an impl of the trait Default.
Inspects an environment variable at compile time.
Structs
Holds a map of accessibility levels for reachable HIR nodes.
A byte offset.
Call a callback with the results of save-analysis.
A character offset.
Used to configure save-analysis.
A DefId identifies a particular definition, by combining a crate
index and a def index.
Dump the save-analysis results to a file.
A subset of properties from both macro definition and macro call available through global data. Avoid using this if you have access to the original definition or call structures.
A unique hash value associated to an expansion.
A unique ID associated with a macro invocation and expansion.
Data for external crates in the prelude of a crate.
Crate name, along with its disambiguator (128-bit hash) represents a globally unique crate identifier, which should allow for differentiation between different crate targets or versions and should point to the same crate when pulled by different other, dependent crates.
Range inside of a Span used for diagnostics when we only have access to relative positions.
A source code location used for error reporting.
A unique ID associated with a macro invocation and expansion.
Identifies an offset of a multi-byte character in a SourceFile.
A collection of Spans.
Identifies an offset of a character that was normalized away from SourceFile.
A single source in the SourceMap.
The hash of the on-disk source file used for debug info.
A compressed span.
Represents a span.
A span together with some additional data.
An interned string.
A SyntaxContext represents a chain of pairs (ExpnId, Transparency) named “marks”.
The central data structure of the compiler. It stores references to the various arenas and also houses the results of the various compiler queries that have been performed. See the rustc dev guide for more details.
Wraps a writer and buffers its output.
A mutable memory location.
A reference to an open file on the filesystem.
Enums
The kind of compiler desugaring.
Expansion kind.
The state of the lazy external source loading mechanism of a SourceFile.
Differentiates between real files and common virtual files.
What kind of definition something is; e.g., mod vs struct.
The kind of macro invocation or definition.
Identifies an offset of a non-narrow character in a SourceFile.
The resolution of a path or export.
Constants
Dummy span, both position and length are zero, syntax context is zero as well.
Item definitions in the currently-compiled crate would have the CrateNum
LOCAL_CRATE in their DefId.
Statics
Traits
Requirements for a StableHashingContext to be used in this crate.
Defines what to do with the results of saving the analysis.
Each method of the Visitor trait is a hook to be potentially
overridden. Each method’s default implementation recursively visits
the substructure of the input via the corresponding walk method;
e.g., the visit_mod method by default calls intravisit::walk_mod.
A trait for giving a type a useful default value.
Functions
Makes a doc string more presentable to users. Used by rustdoc and perhaps other tools, but not by rustc.
Prevent path trimming if it is turned on. Path trimming affects Display impl
of various rustc types, for example std::vec::Vec would be trimmed to Vec,
if no other Vec is found.
Calls the provided closure, using the provided SourceMap to format
any spans that are debug-printed during the closure’s execution.