(obj: &str)
| 56 | } |
| 57 | |
| 58 | fn execute_rust_program(obj: &str) -> anyhow::Result<String> { |
| 59 | let result = std::process::Command::new(&obj) |
| 60 | .stderr(Stdio::inherit()) |
| 61 | .output()?; |
| 62 | if result.status.code().context("run")? != 0 { |
| 63 | anyhow::bail!("Failed to run {obj}"); |
| 64 | } |
| 65 | Ok(String::from_utf8(result.stdout)?) |
| 66 | } |
| 67 | |
| 68 | fn probe_layout_of(typedef: &str) -> anyhow::Result<Layout> { |
| 69 | log::trace!("Probing {typedef} ..."); |
no test coverage detected