rustup allows one to install the rust source, that's obviously not a target

This commit is contained in:
Oliver Schneider 2016-11-17 11:31:53 +01:00
parent a5aafbdfbf
commit 4ebf7bfea6
No known key found for this signature in database
GPG Key ID: 56D6EEA0FC67AC46

@ -34,8 +34,9 @@ fn for_all_targets<F: FnMut(String)>(sysroot: &str, mut f: F) {
continue;
}
let target = target.file_name().into_string().unwrap();
if target == "etc" {
continue;
match &*target {
"etc" | "src" => continue,
_ => {},
}
let stderr = std::io::stderr();
writeln!(stderr.lock(), "running tests for target {}", target).unwrap();