When rustc is not found, this is the error that is printed:
[ERROR] Error while executing llvm tools: No such file or directory (os error 2)
That comes from
|
let output = Command::new(rustc).arg("--print").arg("sysroot").output()?; |
that fails with an
std::io::Error that doesn't contain information about what specifically failed.