Skip to content

Commit a375d1d

Browse files
committed
compiletest: cleanup is_rustdoc logic
1 parent 6dd75f0 commit a375d1d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/tools/compiletest/src/runtest.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1417,9 +1417,7 @@ impl<'test> TestCx<'test> {
14171417
}
14181418

14191419
fn is_rustdoc(&self) -> bool {
1420-
self.config.src_base.ends_with("rustdoc-ui")
1421-
|| self.config.src_base.ends_with("rustdoc-js")
1422-
|| self.config.src_base.ends_with("rustdoc-json")
1420+
matches!(self.config.suite.as_str(), "rustdoc-ui" | "rustdoc-js" | "rustdoc-json")
14231421
}
14241422

14251423
fn get_mir_dump_dir(&self) -> PathBuf {

0 commit comments

Comments
 (0)