Crate rustc_ast_ir

Source
Expand description

Common utilities shared by both rustc_ast and rustc_type_ir.

Don’t depend on this crate directly; both of those crates should re-export the functionality. Additionally, if you’re in scope of rustc_middle, then prefer imports via that too, to avoid needing to directly depend on (e.g.) rustc_type_ir for a single import.

Modules§

visit

Macros§

try_visit
visit_opt
walk_list
walk_visitable_list

Enums§

Movability
The movability of a coroutine / closure literal: whether a coroutine contains self-references, causing it to be !Unpin.
Mutability
Pinnedness