We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--explain
1 parent 9adf2b2 commit 4e68e2aCopy full SHA for 4e68e2a
src/librustc/session/config.rs
@@ -1622,8 +1622,11 @@ pub fn build_session_options_and_crate_config(matches: &getopts::Matches)
1622
let mut debugging_opts = build_debugging_options(matches, error_format);
1623
1624
if !debugging_opts.unstable_options && error_format == ErrorOutputType::Json(true) {
1625
- early_error(ErrorOutputType::Json(false),
1626
- "--error-format=pretty-json is unstable");
+ early_error(ErrorOutputType::Json(false), "--error-format=pretty-json is unstable");
+ }
1627
+
1628
+ if !debugging_opts.unstable_options && debugging_opts.explain {
1629
+ early_error(ErrorOutputType::Json(false), "-Z --explain is unstable");
1630
}
1631
1632
let mut output_types = BTreeMap::new();
0 commit comments