diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-07-04 10:23:36 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-07-22 20:22:16 +0200 |
| commit | e07a1bbb79fc3fb400ac4a2f25bb37cd8a0c245b (patch) | |
| tree | 56006f7b45af79310e3598a14f16ccdbcd63e87e /src | |
| parent | 8dc2abb5c3a8de5982dd979ddaf722b4b6cc40fd (diff) | |
| download | rust-e07a1bbb79fc3fb400ac4a2f25bb37cd8a0c245b.tar.gz rust-e07a1bbb79fc3fb400ac4a2f25bb37cd8a0c245b.zip | |
Move tests around to appease `tidy`
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/tidy/src/unit_tests.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/tidy/src/unit_tests.rs b/src/tools/tidy/src/unit_tests.rs index 90ef36d5882..df9146b5147 100644 --- a/src/tools/tidy/src/unit_tests.rs +++ b/src/tools/tidy/src/unit_tests.rs @@ -56,7 +56,8 @@ pub fn check(root_path: &Path, bad: &mut bool) { let line = line.trim(); let is_test = || line.contains("#[test]") && !line.contains("`#[test]"); let is_bench = || line.contains("#[bench]") && !line.contains("`#[bench]"); - if !line.starts_with("//") && (is_test() || is_bench()) { + let manual_skip = line.contains("//tidy:skip"); + if !line.starts_with("//") && (is_test() || is_bench()) && !manual_skip { let explanation = if is_core { "`core` unit tests and benchmarks must be placed into `coretests`" } else if is_alloc { |
