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

Function rustc

debugger/tests/util.rs:212–223  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

210}
211
212pub fn rustc(path: &str) {
213 let src = format!("{path}.rs");
214 let obj = format!("{path}.o");
215 let result = rustc_cmd(&src, &obj)
216 .spawn()
217 .unwrap()
218 .wait_with_output()
219 .unwrap();
220 if result.status.code().unwrap() != 0 {
221 panic!("Failed to compile {src}");
222 }
223}
224
225pub fn rustc_optimize(path: &str) {
226 let src = format!("{path}.rs");

Callers 7

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
generate_rust_programFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

rustc_cmdFunction · 0.85

Tested by

no test coverage detected