mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
handle "ignore-" and "only-"
This commit is contained in:
parent
55121a9c46
commit
8eb3def446
@ -697,6 +697,12 @@ impl Config {
|
||||
let (name, comment) =
|
||||
line.split_once(&[':', ' ']).map(|(l, c)| (l, Some(c))).unwrap_or((line, None));
|
||||
|
||||
// Some of the matchers might be "" depending on what the target information is. To avoid
|
||||
// problems we outright reject empty directives.
|
||||
if name == "" {
|
||||
return ParsedNameDirective::invalid();
|
||||
}
|
||||
|
||||
let mut outcome = MatchOutcome::Invalid;
|
||||
let mut message = None;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user