match matches.opt_str("error-format").as_ref().map(|s| &s[..]) {
None |
Some("human") => ErrorOutputType::HumanReadable(HumanReadableErrorType::Default(color)),
+ Some("human-annotate-rs") => {
+ ErrorOutputType::HumanReadable(HumanReadableErrorType::AnnotateRs(color))
+ },
Some("json") => ErrorOutputType::Json { pretty: false, json_rendered },
Some("pretty-json") => ErrorOutputType::Json { pretty: true, json_rendered },
Some("short") => ErrorOutputType::HumanReadable(HumanReadableErrorType::Short(color)),
"--error-format=pretty-json is unstable",
);
}
+ if let ErrorOutputType::HumanReadable(HumanReadableErrorType::AnnotateRs(_)) =
+ error_format {
+ early_error(
+ ErrorOutputType::Json { pretty: false, json_rendered },
+ "--error-format=human-annotate-rs is unstable",
+ );
+ }
}
if debugging_opts.pgo_gen.enabled() && debugging_opts.pgo_use.is_some() {