Skip to content

Commit 4ebf7bf

Browse files
committed
rustup allows one to install the rust source, that's obviously not a target
1 parent a5aafbd commit 4ebf7bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/compiletest.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ fn for_all_targets<F: FnMut(String)>(sysroot: &str, mut f: F) {
3434
continue;
3535
}
3636
let target = target.file_name().into_string().unwrap();
37-
if target == "etc" {
38-
continue;
37+
match &*target {
38+
"etc" | "src" => continue,
39+
_ => {},
3940
}
4041
let stderr = std::io::stderr();
4142
writeln!(stderr.lock(), "running tests for target {}", target).unwrap();

0 commit comments

Comments
 (0)