rustc_driver
allows you to interact with Rust code at various stages of compilation.
To get the type of an expression, use the after_analysis
callback to get a TyCtxt
.
{{#include ../../examples/rustc-driver-interacting-with-the-ast.rs}}
rustc_driver
allows you to interact with Rust code at various stages of compilation.
To get the type of an expression, use the after_analysis
callback to get a TyCtxt
.
{{#include ../../examples/rustc-driver-interacting-with-the-ast.rs}}