compiletest: stamp minicore.rs to rerun tests on changes

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-10-22 18:46:32 +08:00
parent a737f75a04
commit 59cb59d74d

View File

@ -890,6 +890,12 @@ fn files_related_to_test(
related.push(path); related.push(path);
} }
// `minicore.rs` test auxiliary: we need to make sure tests get rerun if this changes.
//
// FIXME(jieyouxu): untangle these paths, we should provide both a path to root `tests/` or
// `tests/auxiliary/` and the test suite in question. `src_base` is also a terrible name.
related.push(config.src_base.parent().unwrap().join("auxiliary").join("minicore.rs"));
related related
} }