Merge branch 'feat/deadcode-linux-cfg-gate-listing-helper'
Dev Guards / 架构与合规守门(同 main 口径) (push) Blocked by required conditions
Dev Guards / GPU 证据门禁(同 main 口径;无 GPU 只跑自测) (push) Blocked by required conditions
Dev Guards / fmt (rustfmt --check) (push) Waiting to run
Dev Guards / clippy (ubuntu) (push) Waiting to run
Guards / core 零 UI 守门 (push) Blocked by required conditions
Guards / presenter 零 UI 守门 (push) Blocked by required conditions
Guards / design 零第三方依赖守门 (push) Blocked by required conditions
Guards / unsafe 落点守门(集合必须恰好等于期望) (push) Blocked by required conditions
Guards / 文件行数 ≤400 守门 (push) Blocked by required conditions
Guards / 依赖许可与来源(cargo-deny) (push) Blocked by required conditions
GPU evidence / GPU 判据自测(不需 GPU;跳过 ≠ 已验证) (push) Blocked by required conditions
GPU evidence / GPU 证据 — 探测可用产物与硬件适配器 (push) Blocked by required conditions
Dev Guards / 架构与合规守门(同 main 口径) (push) Blocked by required conditions
Dev Guards / GPU 证据门禁(同 main 口径;无 GPU 只跑自测) (push) Blocked by required conditions
Dev Guards / fmt (rustfmt --check) (push) Waiting to run
Dev Guards / clippy (ubuntu) (push) Waiting to run
Guards / core 零 UI 守门 (push) Blocked by required conditions
Guards / presenter 零 UI 守门 (push) Blocked by required conditions
Guards / design 零第三方依赖守门 (push) Blocked by required conditions
Guards / unsafe 落点守门(集合必须恰好等于期望) (push) Blocked by required conditions
Guards / 文件行数 ≤400 守门 (push) Blocked by required conditions
Guards / 依赖许可与来源(cargo-deny) (push) Blocked by required conditions
GPU evidence / GPU 判据自测(不需 GPU;跳过 ≠ 已验证) (push) Blocked by required conditions
GPU evidence / GPU 证据 — 探测可用产物与硬件适配器 (push) Blocked by required conditions
This commit is contained in:
commit
03b644fa0c
1 file changed
+5
@@ -144,6 +144,11 @@ fn a_truly_missing_versions_dir_stays_empty() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// 目录里直接子项的名字(排序后,用于「有没有新增」的判据)。
|
/// 目录里直接子项的名字(排序后,用于「有没有新增」的判据)。
|
||||||
|
///
|
||||||
|
/// cfg 必须与唯一的调用点(`a_junction_on_the_instances_dir_must_not_write_into_the_game_root`)
|
||||||
|
/// 对齐:那条用例是 `#[cfg(windows)]`(目录联接夹具只在 Windows 上建得出来),Linux 上调用点
|
||||||
|
/// 整块编掉,未 gate 的 helper 就成了 `dead_code`(CI 的 `-D warnings` 会让 clippy 退出 101)。
|
||||||
|
#[cfg(windows)]
|
||||||
fn listing(dir: &std::path::Path) -> Vec<String> {
|
fn listing(dir: &std::path::Path) -> Vec<String> {
|
||||||
let mut names: Vec<String> = std::fs::read_dir(dir)
|
let mut names: Vec<String> = std::fs::read_dir(dir)
|
||||||
.expect("读目录")
|
.expect("读目录")
|
||||||
|
|||||||
Reference in new issue
Block a user