MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / check_rustc_version

Function check_rustc_version

debugger/src/debugger.rs:1259–1264  ·  view source on GitHub ↗

The same `rustc` version must be used to compile the debugger and the target executable. This is due to implicit ABI dependency everywhere.

()

Source from the content-addressed store, hash-verified

1257/// The same `rustc` version must be used to compile the debugger and the target executable.
1258/// This is due to implicit ABI dependency everywhere.
1259pub fn check_rustc_version() {
1260 let rustc_version = rustc_version();
1261 if rustc_version != SUPPORTED_RUSTC_VERSION {
1262 panic!("Mismatched `rustc` version: expect `{SUPPORTED_RUSTC_VERSION}`, found `{rustc_version}`. Please install a matching FireDBG version.");
1263 }
1264}

Callers 1

mainFunction · 0.85

Calls 1

rustc_versionFunction · 0.85

Tested by

no test coverage detected