Mark --explain as unstable

This commit is contained in:
Esteban Küber 2018-01-21 18:19:53 -08:00
parent 9adf2b2225
commit 4e68e2a41a

View File

@ -1622,8 +1622,11 @@ pub fn build_session_options_and_crate_config(matches: &getopts::Matches)
let mut debugging_opts = build_debugging_options(matches, error_format);
if !debugging_opts.unstable_options && error_format == ErrorOutputType::Json(true) {
early_error(ErrorOutputType::Json(false),
"--error-format=pretty-json is unstable");
early_error(ErrorOutputType::Json(false), "--error-format=pretty-json is unstable");
}
if !debugging_opts.unstable_options && debugging_opts.explain {
early_error(ErrorOutputType::Json(false), "-Z --explain is unstable");
}
let mut output_types = BTreeMap::new();