Crate rustc_ast[−][src]
Expand description
Re-exports
Modules
The Rust abstract syntax tree module.
Functions dealing with attributes and meta items.
Definitions shared by macros / syntax extensions and e.g. rustc_middle.
A MutVisitor represents an AST modification; it accepts an AST piece and
and mutates it in place. So, for instance, macro expansion is a MutVisitor
that walks over an AST and modifies it.
The AST pointer.
Token Streams
AST walker. Each overridden visit method has full control over what
happens with its node, it can do its own traversal of the node’s children,
call visit::walk_* to apply the default traversal algorithm, or prevent
deeper traversal by doing nothing.
Macros
Structs
When hashing something that ends up affecting properties like symbol names, we want these symbol names to be calculated independently of other factors like what architecture you’re compiling from.
Traits
Something that implements HashStable<CTX> can be hashed in a way that is
stable across multiple compilation sessions.
Requirements for a StableHashingContext to be used in this crate.
This is a hack to allow using the HashStable_Generic derive macro
instead of implementing everything in rustc_middle.