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ยง
- SKIP_
BORROWCK ๐
Functionsยง
- arg_
values ๐ - Returns the values of the command-line options that match
find_arg
. The options are built-in to be of the form--arg=value
or--arg value
. - def_
id_ ๐debug - Custom
DefId
debug 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
None
if 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