Skip to content

Commit 4e68e2a

Browse files
committed
Mark --explain as unstable
1 parent 9adf2b2 commit 4e68e2a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/librustc/session/config.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,8 +1622,11 @@ pub fn build_session_options_and_crate_config(matches: &getopts::Matches)
16221622
let mut debugging_opts = build_debugging_options(matches, error_format);
16231623

16241624
if !debugging_opts.unstable_options && error_format == ErrorOutputType::Json(true) {
1625-
early_error(ErrorOutputType::Json(false),
1626-
"--error-format=pretty-json is unstable");
1625+
early_error(ErrorOutputType::Json(false), "--error-format=pretty-json is unstable");
1626+
}
1627+
1628+
if !debugging_opts.unstable_options && debugging_opts.explain {
1629+
early_error(ErrorOutputType::Json(false), "-Z --explain is unstable");
16271630
}
16281631

16291632
let mut output_types = BTreeMap::new();

0 commit comments

Comments
 (0)