engine-qwen35-cuda tests: bringup_prints_gated finds test-only children in parent/name.rs (modules no longer use #[path])

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-11-14 21:31:39 +01:00
co-authored by Claude Sonnet 5.5
parent 9254bb3129
commit fbca47bd75
@@ -92,6 +92,11 @@ fn push_declared_files(gated: &mut Vec<PathBuf>, file: &Path, name: &str, above:
let dir = file.parent().unwrap();
gated.push(dir.join(format!("{name}.rs")));
gated.push(dir.join(name).join("mod.rs"));
// an ordinary child of `parent.rs` lives in `parent/name.rs`
if let Some(stem) = file.file_stem() {
gated.push(dir.join(stem).join(format!("{name}.rs")));
gated.push(dir.join(stem).join(name).join("mod.rs"));
}
// `#[path = "other_name.rs"] mod name;`
if let Some(path) = above.split("#[path = \"").nth(1).and_then(|rest| rest.split('"').next()) {
gated.push(dir.join(path));