mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 23:06:23 +00:00
Mark --explain
as unstable
This commit is contained in:
parent
9adf2b2225
commit
4e68e2a41a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user