Expand description
Run the rustc compiler with our custom options and hooks.
Structs§
- Charon
Callbacks - The callbacks for Charon
- RunCompiler
Normally Callbacks - Dummy callbacks used to run the compiler normally when we shouldn’t be analyzing the crate.
Statics§
Functions§
- def_
id_ 🔒debug - Custom
DefIddebug routine that doesn’t print unstable values like ids and hashes. - run_
compiler_ 🔒with_ callbacks - Helper that runs the compiler and catches its fatal errors.
- run_
rustc_ driver - Run the rustc driver with our custom hooks. Returns
Noneif the crate was not compiled with charon (e.g. because it was a dependency). Otherwise returns the translated crate, ready for post-processing transformations. - set_
mir_ 🔒options - Tweak options to get usable MIR even for foreign crates.
- set_
no_ 🔒codegen - Don’t even try to codegen. This avoids errors due to checking if the output filename is available (despite the fact that we won’t emit it because we stop compilation early).
- set_
skip_ 🔒borrowck - setup_
compiler 🔒 - skip_
borrowck_ 🔒if_ set