return Ok(());
}
+ if let Some(ref code) = args.value_of("explain") {
+ let mut procss = config.rustc()?.process();
+ procss.arg("--explain").arg(code).exec()?;
+ return Ok(());
+ }
+
if args.is_present("list") {
println!("Installed Commands:");
for command in list_commands(config) {
#[test]
fn explain() {
assert_that(cargo_process().arg("--explain").arg("E0001"),
- execs().with_status(0));
+ execs().with_status(0).with_stdout_contains("\
+This error suggests that the expression arm corresponding to the noted pattern"));
}