Skip to content

Commit 040929b

Browse files
Revert "Rollup merge of #125472 - erikdesjardins:component, r=clubby789"
This reverts commit 64730a1, reversing changes made to 80aea30.
1 parent 7c52d2d commit 040929b

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

src/tools/tidy/src/target_specific_tests.rs

-34
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,6 @@ use crate::walk::filter_not_rust;
1010
const LLVM_COMPONENTS_HEADER: &str = "needs-llvm-components:";
1111
const COMPILE_FLAGS_HEADER: &str = "compile-flags:";
1212

13-
const KNOWN_LLVM_COMPONENTS: &[&str] = &[
14-
"aarch64",
15-
"arm",
16-
"avr",
17-
"bpf",
18-
"csky",
19-
"hexagon",
20-
"loongarch",
21-
"m68k",
22-
"mips",
23-
"msp430",
24-
"nvptx",
25-
"powerpc",
26-
"riscv",
27-
"sparc",
28-
"systemz",
29-
"webassembly",
30-
"x86",
31-
];
32-
3313
#[derive(Default, Debug)]
3414
struct RevisionInfo<'a> {
3515
target_arch: Option<&'a str>,
@@ -88,20 +68,6 @@ pub fn check(path: &Path, bad: &mut bool) {
8868
// gathered.
8969
}
9070
}
91-
if let Some(llvm_components) = llvm_components {
92-
for component in llvm_components {
93-
// Ensure the given component even exists.
94-
// This is somewhat redundant with COMPILETEST_REQUIRE_ALL_LLVM_COMPONENTS,
95-
// but helps detect such problems earlier (PR CI rather than bors CI).
96-
if !KNOWN_LLVM_COMPONENTS.contains(component) {
97-
eprintln!(
98-
"{}: revision {} specifies unknown LLVM component `{}`",
99-
file, rev, component
100-
);
101-
*bad = true;
102-
}
103-
}
104-
}
10571
}
10672
});
10773
}

0 commit comments

Comments
 (0)