Skip to content

Commit 6560409

Browse files
committed
compiletest: retire opt_str2
We either have the value of a flag specified, or we don't. Use `Option<...>` to represent that -- don't invent a new "(none)" sentinel value...
1 parent 3387d09 commit 6560409

File tree

1 file changed

+0
-7
lines changed
  • src/tools/compiletest/src

1 file changed

+0
-7
lines changed

src/tools/compiletest/src/lib.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -501,13 +501,6 @@ fn parse_config(args: Vec<String>) -> Config {
501501
}
502502
}
503503

504-
fn opt_str2(maybestr: Option<String>) -> String {
505-
match maybestr {
506-
None => "(none)".to_owned(),
507-
Some(s) => s,
508-
}
509-
}
510-
511504
/// Called by `main` after the config has been parsed.
512505
fn run_tests(config: Arc<Config>) {
513506
debug!(?config, "run_tests");

0 commit comments

Comments
 (0)