MCPcopy Index your code
hub / github.com/RustPython/RustPython / rustc_version

Function rustc_version

crates/vm/build.rs:61–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61fn rustc_version() -> String {
62 let rustc = env::var_os("RUSTC").unwrap_or_else(|| "rustc".into());
63 command(rustc, &["-V"])
64}
65
66fn command(cmd: impl AsRef<std::ffi::OsStr>, args: &[&str]) -> String {
67 match Command::new(cmd).args(args).output() {

Callers

nothing calls this directly

Calls 1

commandFunction · 0.85

Tested by

no test coverage detected