Module rupta::util

source ·

Modules§

Functions§

  • Returns the location of the rust system binaries that are associated with this build of rust-pta. The location is obtained by looking at the contents of the environmental variables that were set at the time rust-pta was compiled. If the rust compiler was installed by rustup, the variables RUSTUP_HOME and RUSTUP_TOOLCHAIN are used and these are set by the compiler itself. If the rust compiler was compiled and installed in some other way, for example from a source enlistment, then the RUST_SYSROOT variable must be set in the environment from which rust-pta is compiled.
  • Returns true if the function has an explicit self (either self or &(mut) self) as its first parameter, allowing method calls.
  • Returns true if the function has an explicit &(mut) self as its first parameter, allowing method calls.
  • Returns true if the call to (callee_def_id, callee_substs) is a dynamic call.
  • Returns true if the function identified by def_id is defined in the Rust Standard Library.
  • Returns true if the function identified by def_id is defined as part of a trait.
  • Dumps a human readable MIR redendering of the function with the given DefId to standard output.
  • Returns an offset_path equivalent to the qualified_path.