1
Fork 0

compiletest: cleanup is_rustdoc logic

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2025-02-02 22:04:09 +08:00
parent 6dd75f0d68
commit a375d1d15e

View file

@ -1417,9 +1417,7 @@ impl<'test> TestCx<'test> {
} }
fn is_rustdoc(&self) -> bool { fn is_rustdoc(&self) -> bool {
self.config.src_base.ends_with("rustdoc-ui") matches!(self.config.suite.as_str(), "rustdoc-ui" | "rustdoc-js" | "rustdoc-json")
|| self.config.src_base.ends_with("rustdoc-js")
|| self.config.src_base.ends_with("rustdoc-json")
} }
fn get_mir_dump_dir(&self) -> PathBuf { fn get_mir_dump_dir(&self) -> PathBuf {