Skip to content

Commit

Permalink
libtest: Make --report-time an unstable option
Browse files Browse the repository at this point in the history
  • Loading branch information
jakoschiko committed Sep 22, 2019
1 parent c16a547 commit d91b965
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/libtest/lib.rs
Expand Up @@ -566,6 +566,13 @@ pub fn parse_opts(args: &[String]) -> Option<OptRes> {
));
}

let report_time = matches.opt_present("report-time");
if !allow_unstable && report_time {
return Some(Err(
"The \"report-time\" flag is only accepted on the nightly compiler".into(),
));
}

let run_ignored = match (include_ignored, matches.opt_present("ignored")) {
(true, true) => {
return Some(Err(
Expand All @@ -579,7 +586,6 @@ pub fn parse_opts(args: &[String]) -> Option<OptRes> {
let quiet = matches.opt_present("quiet");
let exact = matches.opt_present("exact");
let list = matches.opt_present("list");
let report_time = matches.opt_present("report-time");

let logfile = matches.opt_str("logfile");
let logfile = logfile.map(|s| PathBuf::from(&s));
Expand Down

0 comments on commit d91b965

Please sign in to comment.